Commit af420f5b authored by Idan Horowitz's avatar Idan Horowitz
Browse files

Shorts, Bytes, Chars and Booleans are int values

parent ea53613f
Pipeline #8339 failed with stage
in 3 minutes and 16 seconds
......@@ -135,7 +135,7 @@ public class BasicInterpreter extends Interpreter<BasicValue> implements Opcodes
return BasicValue.INT_VALUE;
case LDC:
Object value = ((LdcInsnNode) insn).cst;
if (value instanceof Integer) {
if (value instanceof Integer || value instanceof Short || value instanceof Byte || value instanceof Boolean || value instanceof Character) {
return BasicValue.INT_VALUE;
} else if (value instanceof Float) {
return BasicValue.FLOAT_VALUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment