Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/java_bytecode/java_bytecode_typecheck_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ void java_bytecode_typecheckt::typecheck_expr_java_string_literal(exprt &expr)
escape_non_alnum(escaped);
identifier_str << "java::java.lang.String.Literal." << escaped;
// Avoid naming clashes by virtue of escaping:
size_t unique_num=escaped_string_literal_count[identifier_str.str()];
unique_num++;
// NOTE this increments the count stored in the map.
size_t unique_num=++(escaped_string_literal_count[identifier_str.str()]);
if(unique_num!=1)
identifier_str << unique_num;

Expand Down