Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dfa9ac commit 78782b3Copy full SHA for 78782b3
1 file changed
Cython/Compiler/PyrexTypes.py
@@ -1454,6 +1454,10 @@ def py_type_name(self):
1454
else
1455
return (%(type)s)__Pyx_PyInt_AsSignedLongLong(x);
1456
} else {
1457
+ #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
1458
+ PyErr_SetString(PyExc_RuntimeError,
1459
+ "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
1460
+ #else
1461
%(type)s val;
1462
PyObject *v = __Pyx_PyNumber_Int(x);
1463
#if PY_VERSION_HEX < 0x03000000
@@ -1473,6 +1477,7 @@ def py_type_name(self):
1473
1477
if (likely(!ret))
1474
1478
return val;
1475
1479
}
1480
+ #endif
1476
1481
return (%(type)s)-1;
1482
1483
0 commit comments