Skip to content
Permalink
Browse files
[Truffle] Fix BasicObject#equal? for int,long combinations.
  • Loading branch information
eregon committed Oct 31, 2014
1 parent ae9a341 commit e52f6bf9f7965c8b517a6c52d2c4d49f876fdef7
Showing 1 changed file with 2 additions and 2 deletions.
@@ -122,12 +122,12 @@ public ReferenceEqualNode(ReferenceEqualNode prev) {
@Specialization public boolean equal(boolean a, BigInteger b) { return false; }

@Specialization public boolean equal(int a, boolean b) { return false; }
@Specialization public boolean equal(int a, long b) { return false; }
@Specialization public boolean equal(int a, long b) { return a == b; }
@Specialization public boolean equal(int a, double b) { return false; }
@Specialization public boolean equal(int a, BigInteger b) { return false; }

@Specialization public boolean equal(long a, boolean b) { return false; }
@Specialization public boolean equal(long a, int b) { return false; }
@Specialization public boolean equal(long a, int b) { return a == b; }
@Specialization public boolean equal(long a, double b) { return false; }
@Specialization public boolean equal(long a, BigInteger b) { return false; }

0 comments on commit e52f6bf

Please sign in to comment.