File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ mp_integer simplify_const_int(const exprt &expr)
227
227
if (array_type.id ()==ID_signedbv || array_type.id ()==ID_unsignedbv)
228
228
{
229
229
mp_integer mp_index=simplify_const_int (index_expr.index ());
230
- unsigned index=integer2unsigned (mp_index); // TODO: might overflow
230
+ auto index=numeric_cast_v< unsigned > (mp_index); // TODO: might overflow
231
231
assert (index<(index_expr.array ().operands ().size ()));
232
232
return simplify_const_int (index_expr.array ().operands ()[index]);
233
233
}
@@ -308,7 +308,7 @@ ieee_floatt simplify_const_float(const exprt &expr)
308
308
if (array_type.id ()==ID_float)
309
309
{
310
310
mp_integer mp_index=simplify_const_int (index_expr.index ());
311
- unsigned index=integer2unsigned (mp_index); // TODO: might overflow
311
+ auto index=numeric_cast_v< unsigned > (mp_index); // TODO: might overflow
312
312
assert (index<(index_expr.array ().operands ().size ()));
313
313
return simplify_const_float (index_expr.array ().operands ()[index]);
314
314
}
You can’t perform that action at this time.
0 commit comments