Skip to content

Commit 8367ff5

Browse files
Allocate array in String result of String.valueOf(F)
This could otherwise lead to problems in the generation of the verification condition.
1 parent 4ecec1a commit 8367ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_bytecode/java_string_library_preprocess.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,8 @@ codet java_string_library_preprocesst::make_float_to_string_code(
10101010
{
10111011
code_ifthenelset ife;
10121012
ife.cond()=condition_list[i];
1013-
ife.then_case()=code_assign_string_expr_to_java_string(
1014-
str, string_expr_list[i], symbol_table);
1013+
ife.then_case()=code_assign_string_expr_to_new_java_string(
1014+
str, string_expr_list[i], loc, symbol_table);
10151015
ife.else_case()=tmp_code;
10161016
tmp_code=ife;
10171017
}

0 commit comments

Comments
 (0)