File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 16
16
#endif
17
17
18
18
#include < cassert>
19
+ #include < limits>
19
20
20
21
#include < util/base_type.h>
21
22
#include < util/cprover_prefix.h>
@@ -700,7 +701,7 @@ bool goto_inlinet::check_inline_map(
700
701
if (call_list.empty ())
701
702
return true ;
702
703
703
- int ln=- 1 ;
704
+ unsigned ln = std::numeric_limits< unsigned >:: max () ;
704
705
705
706
for (const auto &call : call_list)
706
707
{
@@ -713,8 +714,12 @@ bool goto_inlinet::check_inline_map(
713
714
#endif
714
715
715
716
// location numbers increasing
716
- if (static_cast <int >(target->location_number )<=ln)
717
+ if (
718
+ ln < std::numeric_limits<unsigned >::max () &&
719
+ target->location_number <= ln)
720
+ {
717
721
return false ;
722
+ }
718
723
719
724
if (!target->is_function_call ())
720
725
return false ;
You can’t perform that action at this time.
0 commit comments