summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-07-15 17:14:51 +0000
committerThomas Heller <theller@ctypes.org>2008-07-15 17:14:51 +0000
commit696ac9afbc3f1b6eb57699892e9285d869e1c77b (patch)
treee1af64f9abe505dcc7f3989c16e86b6c3d5d5ae3 /Python/sysmodule.c
parent44d8cb9e0b8d9f11b46efa1fbeffa83b5b756346 (diff)
downloadcpython-696ac9afbc3f1b6eb57699892e9285d869e1c77b.tar.gz
Make these files to compile again under Windows.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 896b2cd85f..4017ac2fa8 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -616,6 +616,7 @@ sys_getsizeof(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *str__sizeof__, *gc_head_size = NULL;
static char *kwlist[] = {"object", "default", 0};
PyObject *o, *dflt = NULL;
+ PyObject *method;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O:getsizeof",
kwlist, &o, &dflt))
@@ -639,7 +640,7 @@ sys_getsizeof(PyObject *self, PyObject *args, PyObject *kwds)
if (PyType_Ready(Py_TYPE(o)) < 0)
return NULL;
- PyObject *method = _PyType_Lookup(Py_TYPE(o), str__sizeof__);
+ method = _PyType_Lookup(Py_TYPE(o), str__sizeof__);
if (method == NULL)
PyErr_Format(PyExc_TypeError,
"Type %.100s doesn't define __sizeof__",