Skip to content

Commit a6d32eb

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2323 from tautschnig/vs-float
Mark floating-point constants as float
2 parents f2ec10e + c15f47f commit a6d32eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,8 @@ codet java_string_library_preprocesst::make_float_to_string_code(
10731073
// Case of simple notation
10741074
ieee_floatt bound_inf_float(float_spec);
10751075
ieee_floatt bound_sup_float(float_spec);
1076-
bound_inf_float.from_float(1e-3);
1077-
bound_sup_float.from_float(1e7);
1076+
bound_inf_float.from_float(1e-3f);
1077+
bound_sup_float.from_float(1e7f);
10781078
bound_inf_float.change_spec(float_spec);
10791079
bound_sup_float.change_spec(float_spec);
10801080
constant_exprt bound_inf=bound_inf_float.to_expr();

0 commit comments

Comments
 (0)