@@ -342,11 +342,11 @@ void goto_checkt::integer_overflow_check(
342
342
343
343
if (type.id ()==ID_signedbv)
344
344
{
345
- unsigned new_width=to_signedbv_type (type).get_width ();
345
+ std:: size_t new_width=to_signedbv_type (type).get_width ();
346
346
347
347
if (old_type.id ()==ID_signedbv) // signed -> signed
348
348
{
349
- unsigned old_width=to_signedbv_type (old_type).get_width ();
349
+ std:: size_t old_width=to_signedbv_type (old_type).get_width ();
350
350
if (new_width>=old_width) return ; // always ok
351
351
352
352
binary_relation_exprt no_overflow_upper (ID_le);
@@ -367,7 +367,7 @@ void goto_checkt::integer_overflow_check(
367
367
}
368
368
else if (old_type.id ()==ID_unsignedbv) // unsigned -> signed
369
369
{
370
- unsigned old_width=to_unsignedbv_type (old_type).get_width ();
370
+ std:: size_t old_width=to_unsignedbv_type (old_type).get_width ();
371
371
if (new_width>=old_width+1 ) return ; // always ok
372
372
373
373
binary_relation_exprt no_overflow_upper (ID_le);
@@ -408,11 +408,11 @@ void goto_checkt::integer_overflow_check(
408
408
}
409
409
else if (type.id ()==ID_unsignedbv)
410
410
{
411
- unsigned new_width=to_unsignedbv_type (type).get_width ();
411
+ std:: size_t new_width=to_unsignedbv_type (type).get_width ();
412
412
413
413
if (old_type.id ()==ID_signedbv) // signed -> unsigned
414
414
{
415
- unsigned old_width=to_signedbv_type (old_type).get_width ();
415
+ std:: size_t old_width=to_signedbv_type (old_type).get_width ();
416
416
417
417
if (new_width>=old_width-1 )
418
418
{
@@ -451,7 +451,7 @@ void goto_checkt::integer_overflow_check(
451
451
}
452
452
else if (old_type.id ()==ID_unsignedbv) // unsigned -> unsigned
453
453
{
454
- unsigned old_width=to_unsignedbv_type (old_type).get_width ();
454
+ std:: size_t old_width=to_unsignedbv_type (old_type).get_width ();
455
455
if (new_width>=old_width) return ; // always ok
456
456
457
457
binary_relation_exprt no_overflow_upper (ID_le);
0 commit comments