From: Zachary Ware Date: Tue, 29 Dec 2015 05:51:02 +0000 (-0800) Subject: Issue #25972, #20440: Fix compilation on Windows X-Git-Tag: v3.6.0a1~843 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bffa73e582c1a842d91d25ce93055f5e69074764;p=python Issue #25972, #20440: Fix compilation on Windows --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index dddeba043e..c538ec79bd 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -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; }