Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/comparable/equal_value_tags.txt

This file was deleted.

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

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

return Comparable.compare_int(comp) == 0
rescue StandardError
return false
end
end
end

2 comments on commit ef50891

@eregon
Copy link
Member

@eregon eregon commented on ef50891 Jul 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, This was my fix in MRI 2.3!
The code should be re-indented.

@bjfish
Copy link
Contributor

@bjfish bjfish commented on ef50891 Aug 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eregon Indentation fixed at d8fd91f , Thanks

Please sign in to comment.