We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5ce804 + ed7dc1d commit 53fac78Copy full SHA for 53fac78
jbmc/src/java_bytecode/expr2java.cpp
@@ -201,7 +201,9 @@ std::string expr2javat::convert_constant(
201
if(to_integer(src, int_value))
202
UNREACHABLE;
203
204
- dest += "(char)'" + utf16_native_endian_to_java(int_value.to_long()) + '\'';
+ // Character literals in Java have type 'char', thus no cast is needed.
205
+ // This is different from C, where charater literals have type 'int'.
206
+ dest += '\'' + utf16_native_endian_to_java(int_value.to_long()) + '\'';
207
return dest;
208
}
209
else if(src.type()==java_byte_type())
0 commit comments