Ensure value of correct return type is on stack after intrinsic Char +/- Int and Char - Char binary operations.

This commit is contained in:
Ilya Gorbunov
2015-07-05 03:15:29 +03:00
parent 222d4002ac
commit 456bab40d1
5 changed files with 82 additions and 1 deletions
@@ -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))
}
}