Skip to content

Commit

Permalink
Mark floating-point constants as float
Browse files Browse the repository at this point in the history
The function invoked expects a float-typed argument, not double.
  • Loading branch information
tautschnig committed Jun 9, 2018
1 parent 63acc5b commit c15f47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jbmc/src/java_bytecode/java_string_library_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,8 @@ codet java_string_library_preprocesst::make_float_to_string_code(
// Case of simple notation
ieee_floatt bound_inf_float(float_spec);
ieee_floatt bound_sup_float(float_spec);
bound_inf_float.from_float(1e-3);
bound_sup_float.from_float(1e7);
bound_inf_float.from_float(1e-3f);
bound_sup_float.from_float(1e7f);
bound_inf_float.change_spec(float_spec);
bound_sup_float.change_spec(float_spec);
constant_exprt bound_inf=bound_inf_float.to_expr();
Expand Down

0 comments on commit c15f47f

Please sign in to comment.