Skip to content

Commit bf46d96

Browse files
committed
Fix negation on not a number hash update specialization.
1 parent 293d6bc commit bf46d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/core/VMPrimitiveNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public long updateHash(long hash, DynamicObject value) {
468468
}
469469

470470

471-
@Specialization(guards = "isRubyNumber(value)")
471+
@Specialization(guards = "!isRubyNumber(value)")
472472
public Object updateHash(long hash, Object value,
473473
@Cached("createPrivate()") CallDispatchHeadNode coerceToIntNode,
474474
@Cached("createBinaryProfile()") ConditionProfile isIntegerProfile,

0 commit comments

Comments
 (0)