Skip to content

Commit c52da5a

Browse files
committed
Allow implicit casts to long for ClassVariableStorage
1 parent c50fd0d commit c52da5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/truffleruby/RubyLanguage.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ public final class RubyLanguage extends TruffleLanguage<RubyContext> {
212212
public final Shape unboundMethodShape = createShape(RubyUnboundMethod.class);
213213
public final Shape weakMapShape = createShape(RubyWeakMap.class);
214214

215-
public final Shape classVariableShape = Shape.newBuilder().layout(ClassVariableStorage.class).build();
215+
public final Shape classVariableShape = Shape
216+
.newBuilder()
217+
.allowImplicitCastIntToLong(true)
218+
.layout(ClassVariableStorage.class)
219+
.build();
216220

217221
public RubyLanguage() {
218222
coreMethodAssumptions = new CoreMethodAssumptions(this);

0 commit comments

Comments
 (0)