Don't initialize tp_type statically, it won't work on Windows. Spotted
by Thomas Heller (patch 459442).
This commit is contained in:
parent
418c3b1e26
commit
1062e706e5
|
@ -164,7 +164,7 @@ class ObjectDefinition(GeneratorGroup):
|
|||
Output()
|
||||
Output("%sPyTypeObject %s = {", sf, self.typename)
|
||||
IndentLevel()
|
||||
Output("PyObject_HEAD_INIT(&PyType_Type)")
|
||||
Output("PyObject_HEAD_INIT(NULL)")
|
||||
Output("0, /*ob_size*/")
|
||||
Output("\"%s\", /*tp_name*/", self.name)
|
||||
Output("sizeof(%s), /*tp_basicsize*/", self.objecttype)
|
||||
|
|
Loading…
Reference in New Issue