]> granicus.if.org Git - python/commitdiff
Issue #25972, #20440: Fix compilation on Windows
authorZachary Ware <zachary.ware@gmail.com>
Tue, 29 Dec 2015 05:51:02 +0000 (21:51 -0800)
committerZachary Ware <zachary.ware@gmail.com>
Tue, 29 Dec 2015 05:51:02 +0000 (21:51 -0800)
Modules/_ctypes/_ctypes.c

index dddeba043eefc9536394a7abcf4b010c2982f41b..c538ec79bde3259e66950a07f765f23aeb2d9de0 100644 (file)
@@ -5150,7 +5150,7 @@ comerror_init(PyObject *self, PyObject *args, PyObject *kwds)
         return -1;
 
     Py_INCREF(args);
-    Py_SETREF((PyBaseExceptionObject *)self->args, args);
+    Py_SETREF(((PyBaseExceptionObject *)self)->args, args);
 
     return 0;
 }