We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7a943 commit 5b138b7Copy full SHA for 5b138b7
src/goto-programs/goto_inline_class.cpp
@@ -700,7 +700,7 @@ bool goto_inlinet::check_inline_map(
700
if(call_list.empty())
701
return true;
702
703
- int ln=-1;
+ unsigned ln = goto_programt::nil_target;
704
705
for(const auto &call : call_list)
706
{
@@ -713,7 +713,7 @@ bool goto_inlinet::check_inline_map(
713
#endif
714
715
// location numbers increasing
716
- if(static_cast<int>(target->location_number)<=ln)
+ if(ln != goto_programt::nil_target && target->location_number <= ln)
717
return false;
718
719
if(!target->is_function_call())
0 commit comments