Skip to content

Commit 453227a

Browse files
committed
use size_t
1 parent e2d9bba commit 453227a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/solvers/cvc/cvc_conv.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ void cvc_convt::convert_expr(const exprt &expr)
688688
value.size()==32 ||
689689
value.size()==64)
690690
{
691-
unsigned w=value.size()/4;
691+
std::size_t w=value.size()/4;
692692

693693
mp_integer i=binary2integer(id2string(value), false);
694694
std::string hex=integer2string(i, 16);
@@ -1466,7 +1466,7 @@ void cvc_convt::convert_type(const typet &type)
14661466
}
14671467
else if(type.id()==ID_signedbv)
14681468
{
1469-
unsigned width=to_signedbv_type(type).get_width();
1469+
std::size_t width=to_signedbv_type(type).get_width();
14701470

14711471
if(width==0)
14721472
throw "zero-width vector type: "+type.id_string();
@@ -1475,7 +1475,7 @@ void cvc_convt::convert_type(const typet &type)
14751475
}
14761476
else if(type.id()==ID_unsignedbv)
14771477
{
1478-
unsigned width=to_unsignedbv_type(type).get_width();
1478+
std::size_t width=to_unsignedbv_type(type).get_width();
14791479

14801480
if(width==0)
14811481
throw "zero-width vector type: "+type.id_string();

0 commit comments

Comments
 (0)