Ensure value of correct return type is on stack after intrinsic Char +/- Int and Char - Char binary operations.
This commit is contained in:
@@ -34,7 +34,7 @@ public class BinaryOp(private val opcode: Int) : IntrinsicMethod() {
|
||||
val operandType = numberFunctionOperandType(returnType)
|
||||
val paramType = if (shift()) Type.INT_TYPE else operandType
|
||||
|
||||
return createBinaryIntrinsicCallable(operandType, paramType, operandType) {
|
||||
return createBinaryIntrinsicCallable(returnType, paramType, operandType) {
|
||||
v -> v.visitInsn(returnType.getOpcode(opcode))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user