changeset 3238:0478ad72d214

Fixed a () type bug in the negate canonicalizer.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Jul 2011 14:17:00 -0700
parents 399aa66d375e
children 7c4b4daac19b
files graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Negate.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Negate.java	Wed Jul 27 14:16:38 2011 -0700
+++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Negate.java	Wed Jul 27 14:17:00 2011 -0700
@@ -128,7 +128,7 @@
                     case Double: return Constant.forDouble(-x.asConstant().asDouble(), graph);
                 }
             }
-            if (x instanceof Negate && x.kind == CiKind.Int || x.kind == CiKind.Long) {
+            if (x instanceof Negate && (x.kind == CiKind.Int || x.kind == CiKind.Long)) {
                 return ((Negate) x).x();
             }
             return negate;