Commit 1a066456 authored by Stefan Behnel's avatar Stefan Behnel

use faster C-API macro in safe spot

parent a6bf4856
......@@ -456,7 +456,7 @@ static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject
#endif
#if PY_MAJOR_VERSION < 3
} else if (likely(PyInt_CheckExact(exp))) {
shiftby = PyInt_AsLong(exp);
shiftby = PyInt_AS_LONG(exp);
#endif
} else {
goto fallback;
......
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