Skip to content

Commit 2aa6a2f

Browse files
committed
Use non-deprecated to_integer(constant_expr)
1 parent 8187bdd commit 2aa6a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/simplify_expr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ bool simplify_exprt::get_values(
12321232
if(expr.is_constant())
12331233
{
12341234
mp_integer int_value;
1235-
if(to_integer(expr, int_value))
1235+
if(to_integer(to_constant_expr(expr), int_value))
12361236
return true;
12371237

12381238
value_list.insert(int_value);

0 commit comments

Comments
 (0)