fix Py3 version dependency in C code
authorStefan Behnel <scoder@users.berlios.de>
Thu, 9 Dec 2010 08:58:35 +0000 (09:58 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 9 Dec 2010 08:58:35 +0000 (09:58 +0100)
Cython/Compiler/Builtin.py

index f028a0e9f6c744e920500e3e36b73993f5b94f91..196a2094a09d4a55b3bed11a69517ca34daa90ab 100644 (file)
@@ -123,7 +123,7 @@ static PyObject* __Pyx_PyRun(PyObject* o, PyObject* globals, PyObject* locals) {
                 "code object passed to exec() may not contain free variables");
             goto bad;
         }
-        #if PY_VERSION_HEX < 0x030200A4
+        #if PY_VERSION_HEX < 0x030200B1
         result = PyEval_EvalCode((PyCodeObject *)o, globals, locals);
         #else
         result = PyEval_EvalCode(o, globals, locals);