Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -2548,7 +2548,7 @@ public RubyBasicObject max(VirtualFrame frame, Object maximumObject, Object valu

final Object current = maximum.get();

if (current == null || (int) compareNode.call(frame, value, "<=>", null, current) < 0) {
if (current == null || (int) compareNode.call(frame, value, "<=>", null, current) > 0) {
maximum.set(value);
}

0 comments on commit b0b7249

Please sign in to comment.