From bffa73e582c1a842d91d25ce93055f5e69074764 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Mon, 28 Dec 2015 21:51:02 -0800 Subject: Issue #25972, #20440: Fix compilation on Windows --- Modules/_ctypes/_ctypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index dddeba0..c538ec7 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; } -- cgit v0.12