Skip to content

Commit 6e4b79f

Browse files
committed
Fix missing minNumOfPositionalArgs bug in PyTruffle_NewTypeDict.
The missing explicit specification of the minNumOfPositionalArgs led to PyTurffleNewTypeDict not being instantiable. This e.g. caused the generic case of CallBinaryMethodNode not actually covering all cases.
1 parent eabf737 commit 6e4b79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ Object doIt(Object self, String className) {
21482148
}
21492149
}
21502150

2151-
@Builtin(name = "PyTruffle_NewTypeDict")
2151+
@Builtin(name = "PyTruffle_NewTypeDict", minNumOfPositionalArgs = 1)
21522152
@GenerateNodeFactory
21532153
@TypeSystemReference(PythonTypes.class)
21542154
public abstract static class PyTruffleNewTypeDict extends PythonUnaryBuiltinNode {

0 commit comments

Comments
 (0)