Skip to content

Commit f28def3

Browse files
committed
Remove extra !isRubyBignum guards, RubyDynamicObject cannot be RubyBignum
1 parent aa22248 commit f28def3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/truffleruby/core/numeric/FloatNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected RubyArray divMod(double a, RubyBignum b) {
286286
return divModNode.execute(a, b.value);
287287
}
288288

289-
@Specialization(guards = "!isRubyBignum(b)")
289+
@Specialization
290290
protected Object divModCoerced(double a, RubyDynamicObject b,
291291
@Cached DispatchNode redoCoerced) {
292292
return redoCoerced.call(a, "redo_coerced", coreSymbols().DIVMOD, b);

src/main/java/org/truffleruby/language/objects/IsImmutableObjectNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected boolean isImmutableObject(ImmutableRubyObject object) {
4848
return true;
4949
}
5050

51-
@Specialization(guards = "!isRubyBignum(object)")
51+
@Specialization
5252
protected boolean isImmutableObject(RubyDynamicObject object,
5353
@Cached LogicalClassNode logicalClassNode) {
5454
final RubyClass logicalClass = logicalClassNode.execute(object);

0 commit comments

Comments
 (0)