Skip to content

Commit

Permalink
Merge pull request diffblue#2537 from tautschnig/vs-non-deprecated
Browse files Browse the repository at this point in the history
Use non-deprecated to_integer(constant_expr)
  • Loading branch information
smowton authored Jul 7, 2018
2 parents 8187bdd + 2aa6a2f commit d6565ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/simplify_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ bool simplify_exprt::get_values(
if(expr.is_constant())
{
mp_integer int_value;
if(to_integer(expr, int_value))
if(to_integer(to_constant_expr(expr), int_value))
return true;

value_list.insert(int_value);
Expand Down

0 comments on commit d6565ec

Please sign in to comment.