Commit decad243 authored by Stefan Behnel's avatar Stefan Behnel

avoid C compiler warning in pypy

parent 18923050
...@@ -390,7 +390,7 @@ static double __Pyx__PyObject_AsDouble(PyObject* obj); /* proto */ ...@@ -390,7 +390,7 @@ static double __Pyx__PyObject_AsDouble(PyObject* obj); /* proto */
static double __Pyx__PyObject_AsDouble(PyObject* obj) { static double __Pyx__PyObject_AsDouble(PyObject* obj) {
PyObject* float_value; PyObject* float_value;
#if CYTHON_COMPILING_IN_PYPY #if CYTHON_COMPILING_IN_PYPY
float_value = PyNumber_Float(obj); float_value = PyNumber_Float(obj); if (0) goto bad;
#else #else
PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number; PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number;
if (likely(nb) && likely(nb->nb_float)) { if (likely(nb) && likely(nb->nb_float)) {
......
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