Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions truffle/src/main/ruby/core/comparable.rb
Original file line number Diff line number Diff line change
@@ -29,11 +29,11 @@ def ==(other)
return true if equal?(other)

return false if Thread.detect_recursion(self, other) do
unless comp = (self <=> other)
return false
end
unless comp = (self <=> other)
return false
end

return Comparable.compare_int(comp) == 0
return Comparable.compare_int(comp) == 0
end
end

0 comments on commit d8fd91f

Please sign in to comment.