Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -40,10 +40,13 @@ public static abstract class BignumCoreMethodNode extends CoreMethodArrayArgumen

public BignumCoreMethodNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
fixnumOrBignum = new FixnumOrBignumNode(context, sourceSection);
}

public Object fixnumOrBignum(BigInteger value) {
if (fixnumOrBignum == null) {
CompilerDirectives.transferToInterpreter();
fixnumOrBignum = insert(new FixnumOrBignumNode(getContext(), getSourceSection()));
}
return fixnumOrBignum.fixnumOrBignum(value);
}

0 comments on commit a90b652

Please sign in to comment.