""",
impl="""
static INLINE %(type)s __Pyx_PyInt_As%(SignWord)s%(TypeName)s(PyObject* x) {
- const %(type)s neg_one = (%(type)s)-1, zero = 0;
- const int is_unsigned = neg_one > zero;
+ const %(type)s neg_one = (%(type)s)-1, const_zero = 0;
+ const int is_unsigned = neg_one > const_zero;
if (sizeof(%(type)s) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(%(type)s)val)) {
""",
impl="""
static INLINE %(type)s __Pyx_PyInt_As%(SignWord)s%(TypeName)s(PyObject* x) {
- const %(type)s neg_one = (%(type)s)-1, zero = 0;
- const int is_unsigned = neg_one > zero;
+ const %(type)s neg_one = (%(type)s)-1, const_zero = 0;
+ const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
if (likely(PyInt_Check(x))) {
long val = PyInt_AS_LONG(x);
""",
impl="""
static INLINE %(type)s __Pyx_PyInt_from_py_%(TypeName)s(PyObject* x) {
- const %(type)s neg_one = (%(type)s)-1, zero = 0;
- const int is_unsigned = neg_one > zero;
+ const %(type)s neg_one = (%(type)s)-1, const_zero = 0;
+ const int is_unsigned = neg_one > const_zero;
if (sizeof(%(type)s) == sizeof(char)) {
if (is_unsigned)
return (%(type)s)__Pyx_PyInt_AsUnsignedChar(x);
""",
impl="""
static INLINE PyObject *__Pyx_PyInt_to_py_%(TypeName)s(%(type)s val) {
- const %(type)s neg_one = (%(type)s)-1, zero = 0;
- const int is_unsigned = neg_one > zero;
+ const %(type)s neg_one = (%(type)s)-1, const_zero = 0;
+ const int is_unsigned = neg_one > const_zero;
if (sizeof(%(type)s) < sizeof(long)) {
return PyInt_FromLong((long)val);
} else if (sizeof(%(type)s) == sizeof(long)) {