@@ -342,11 +342,11 @@ void goto_checkt::integer_overflow_check(
342342
343343 if (type.id ()==ID_signedbv)
344344 {
345- unsigned new_width=to_signedbv_type (type).get_width ();
345+ std:: size_t new_width=to_signedbv_type (type).get_width ();
346346
347347 if (old_type.id ()==ID_signedbv) // signed -> signed
348348 {
349- unsigned old_width=to_signedbv_type (old_type).get_width ();
349+ std:: size_t old_width=to_signedbv_type (old_type).get_width ();
350350 if (new_width>=old_width) return ; // always ok
351351
352352 binary_relation_exprt no_overflow_upper (ID_le);
@@ -367,7 +367,7 @@ void goto_checkt::integer_overflow_check(
367367 }
368368 else if (old_type.id ()==ID_unsignedbv) // unsigned -> signed
369369 {
370- unsigned old_width=to_unsignedbv_type (old_type).get_width ();
370+ std:: size_t old_width=to_unsignedbv_type (old_type).get_width ();
371371 if (new_width>=old_width+1 ) return ; // always ok
372372
373373 binary_relation_exprt no_overflow_upper (ID_le);
@@ -408,11 +408,11 @@ void goto_checkt::integer_overflow_check(
408408 }
409409 else if (type.id ()==ID_unsignedbv)
410410 {
411- unsigned new_width=to_unsignedbv_type (type).get_width ();
411+ std:: size_t new_width=to_unsignedbv_type (type).get_width ();
412412
413413 if (old_type.id ()==ID_signedbv) // signed -> unsigned
414414 {
415- unsigned old_width=to_signedbv_type (old_type).get_width ();
415+ std:: size_t old_width=to_signedbv_type (old_type).get_width ();
416416
417417 if (new_width>=old_width-1 )
418418 {
@@ -451,7 +451,7 @@ void goto_checkt::integer_overflow_check(
451451 }
452452 else if (old_type.id ()==ID_unsignedbv) // unsigned -> unsigned
453453 {
454- unsigned old_width=to_unsignedbv_type (old_type).get_width ();
454+ std:: size_t old_width=to_unsignedbv_type (old_type).get_width ();
455455 if (new_width>=old_width) return ; // always ok
456456
457457 binary_relation_exprt no_overflow_upper (ID_le);
0 commit comments