JVM: Fix IEEE 754 comparison generation for boxed numbers

This commit is contained in:
Dmitry Petrov
2020-01-14 10:12:50 +03:00
parent 26f435eb90
commit d5ff1047a5
7 changed files with 78 additions and 1 deletions
@@ -4044,7 +4044,8 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
boolean properIeee754Comparisons = shouldUseProperIeee754Comparisons();
if (properIeee754Comparisons && left754Type != null && right754Type != null) {
type = comparisonOperandType(leftType, rightType);
type = comparisonOperandType(left754Type.type, right754Type.type);
//type = comparisonOperandType(leftType, rightType);
leftValue = gen(left);
rightValue = gen(right);
}