Skip to content

Commit

Permalink
[Truffle] Fixed issues with RubyObject specialization in False#^.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Nov 19, 2014
1 parent a7cfb54 commit 7c36a61
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -38,14 +38,13 @@ public boolean xor(RubyNilClass other) {
return false;
}

@Specialization
public boolean xor(RubyString other) {
@Specialization(guards = "isNotNull")
public boolean xor(RubyObject other) {
return true;
}

@Specialization
public boolean xor(RubyObject other) {
return true;
static boolean isNotNull(RubyObject o) {
return ! (o instanceof RubyNilClass);
}

}
Expand Down

0 comments on commit 7c36a61

Please sign in to comment.