From 003032328f2cde3e587f030f3bb947c72c2ab8eb Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 2 Jun 1999 20:24:36 +0000 Subject: [PATCH] NAN -> NaN added NaN operand of constructor git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@833 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/CompareUnaryOperator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jode/jode/expr/CompareUnaryOperator.java b/jode/jode/expr/CompareUnaryOperator.java index 11894cf..46641bd 100644 --- a/jode/jode/expr/CompareUnaryOperator.java +++ b/jode/jode/expr/CompareUnaryOperator.java @@ -65,15 +65,15 @@ public class CompareUnaryOperator extends Operator { boolean negated = false; int opIndex = getOperatorIndex(); - if (cmpOp.allowsNAN && getOperatorIndex() > NOTEQUALS_OP) { - if (cmpOp.greaterOnNAN == + if (cmpOp.allowsNaN && getOperatorIndex() > NOTEQUALS_OP) { + if (cmpOp.greaterOnNaN == (opIndex == GREATEREQ_OP || opIndex == GREATER_OP)) { negated = true; opIndex ^= 1; } } Expression newOp = new CompareBinaryOperator - (cmpOp.compareType, opIndex) + (cmpOp.compareType, opIndex, cmpOp.allowsNaN) .addOperand(cmpOp.subExpressions[1]) .addOperand(cmpOp.subExpressions[0]);