Skip to content

Commit

Permalink
[Truffle] Fix a couple specializations of equal?.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 7, 2014
1 parent 26152a6 commit 23a3d2f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -137,11 +137,11 @@ public boolean equal(double a, double b) {

@Specialization
public boolean equal(BigInteger a, BigInteger b) {
return a.compareTo(b) == 0;
return a == b;
}

@Specialization
public boolean equal(RubyBasicObject a, RubyBasicObject b) {
public boolean equal(Object a, Object b) {
return a == b;
}
}
Expand Down

0 comments on commit 23a3d2f

Please sign in to comment.