[Python-checkins] cpython: Fix compilation under Windows
antoine.pitrou
python-checkins at python.org
Tue Jul 10 18:29:27 CEST 2012
http://hg.python.org/cpython/rev/2ecdda96f970
changeset: 78052:2ecdda96f970
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Jul 10 18:27:54 2012 +0200
summary:
Fix compilation under Windows
files:
Python/import.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -426,12 +426,13 @@
long
PyImport_GetMagicNumber(void)
{
+ long res;
PyInterpreterState *interp = PyThreadState_Get()->interp;
PyObject *pyc_magic = PyObject_GetAttrString(interp->importlib,
"_RAW_MAGIC_NUMBER");
if (pyc_magic == NULL)
return -1;
- long res = PyLong_AsLong(pyc_magic);
+ res = PyLong_AsLong(pyc_magic);
Py_DECREF(pyc_magic);
return res;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list