We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a512c1 commit f62df2dCopy full SHA for f62df2d
src/goto-programs/goto_convert.cpp
@@ -1834,7 +1834,9 @@ bool goto_convertt::get_string_constant(
1834
if(to_integer(to_constant_expr(*it), int_value))
1835
return true;
1836
1837
- unsigned long i = integer2ulong(int_value);
+ const auto i = numeric_cast<std::size_t>(*it);
1838
+ if(!i.has_value())
1839
+ return true;
1840
1841
if(i!=0) // to skip terminating 0
1842
result+=static_cast<char>(i);
0 commit comments