Commits

David Ibáñez committed a91bc9f

Fix compilation on Windows

Comments (0)

Files changed (1)

 }
 
 static PyTypeObject TreeIterType = {
-   PyVarObject_HEAD_INIT(&PyType_Type, 0)
+   PyVarObject_HEAD_INIT(NULL, 0)
    "pygit2.TreeIter",                       /* tp_name           */
    sizeof(TreeIter),                        /* tp_basicsize      */
    0,                                       /* tp_itemsize       */
 }
 
 static PyTypeObject IndexIterType = {
-   PyVarObject_HEAD_INIT(&PyType_Type, 0)
+   PyVarObject_HEAD_INIT(NULL, 0)
    "pygit2.IndexIter",                      /* tp_name           */
    sizeof(IndexIter),                       /* tp_basicsize      */
    0,                                       /* tp_itemsize       */