return PyLong_AsLongLong(x);
}
else {
+ PY_LONG_LONG val;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
- PY_LONG_LONG val = __pyx_PyInt_AsLongLong(tmp);
+ val = __pyx_PyInt_AsLongLong(tmp);
Py_DECREF(tmp);
return val;
}
return PyLong_AsUnsignedLongLong(x);
}
else {
+ PY_LONG_LONG val;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
- PY_LONG_LONG val = __pyx_PyInt_AsUnsignedLongLong(tmp);
+ val = __pyx_PyInt_AsUnsignedLongLong(tmp);
Py_DECREF(tmp);
return val;
}