Commit f5447b76 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.29.x'

parents edf66a93 bc5ae161
......@@ -150,13 +150,29 @@ Other changes
* Support for Python 2.6 was removed.
0.29.12 (2019-07-??)
====================
Bugs fixed
----------
* Fix compile error in CPython 3.8b2 regarding the ``PyCode_New()`` signature.
(Github issue #3031)
* Fix a C compiler warning about a missing ``int`` downcast.
(Github issue #3028)
* Fix reported error positions of undefined builtins and constants.
Patch by Orivej Desh. (Github issue #3030)
0.29.11 (2019-06-30)
====================
Bugs fixed
----------
* Fix compile error in CPython 3.8b2.
* Fix compile error in CPython 3.8b2 regarding the ``PyCode_New()`` signature.
Patch by Nick Coghlan. (Github issue #3009)
* Invalid C code generated for lambda functions in cdef methods.
......
......@@ -2339,7 +2339,7 @@ class CCodeWriter(object):
def error_goto(self, pos):
lbl = self.funcstate.error_label
self.funcstate.use_label(lbl)
if not pos:
if pos is None:
return 'goto %s;' % lbl
return "__PYX_ERR(%s, %s, %s)" % (
self.lookup_filename(pos[0]),
......
......@@ -2192,12 +2192,12 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
//#elif PY_MAJOR_VERSION >= 3
#if PY_MAJOR_VERSION >= 3
result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
args, nargs,
args, (int)nargs,
k, (int)nk,
d, (int)nd, kwdefs, closure);
#else
result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
args, nargs,
args, (int)nargs,
k, (int)nk,
d, (int)nd, closure);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment