Skip to content

Commit 60acca5

Browse files
committed
[GR-23303] make test_imp not crash
1 parent ac742c2 commit 60acca5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ImpModuleBuiltins.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ PBytes run(long magicNumber, PBytesLike source) {
609609
PBytes run(PInt magicNumber, PBytesLike source) {
610610
return run(magicNumber.longValue(), source);
611611
}
612+
613+
@Specialization
614+
PBytes run(int magicNumber, PBytesLike source) {
615+
return run((long) magicNumber, source);
616+
}
612617
}
613618

614619
@Builtin(name = "_fix_co_filename", minNumOfPositionalArgs = 2)

0 commit comments

Comments
 (0)