Commit 8102e171 authored by Stefan Behnel's avatar Stefan Behnel

compile fix for test under PyPy

parent 6069140a
...@@ -10014,12 +10014,19 @@ static int __Pyx_cdivision_warning(const char *, int); /* proto */ ...@@ -10014,12 +10014,19 @@ static int __Pyx_cdivision_warning(const char *, int); /* proto */
""", """,
impl=""" impl="""
static int __Pyx_cdivision_warning(const char *filename, int lineno) { static int __Pyx_cdivision_warning(const char *filename, int lineno) {
#if CYTHON_COMPILING_IN_PYPY
filename++; // avoid compiler warnings
lineno++;
return PyErr_Warn(PyExc_RuntimeWarning,
"division with oppositely signed operands, C and Python semantics differ");
#else
return PyErr_WarnExplicit(PyExc_RuntimeWarning, return PyErr_WarnExplicit(PyExc_RuntimeWarning,
"division with oppositely signed operands, C and Python semantics differ", "division with oppositely signed operands, C and Python semantics differ",
filename, filename,
lineno, lineno,
__Pyx_MODULE_NAME, __Pyx_MODULE_NAME,
NULL); NULL);
#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