projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b4a38
)
fix unsigned PY_LONG_LONG type converter function
author
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 6 Feb 2009 15:15:23 +0000
(13:15 -0200)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 6 Feb 2009 15:15:23 +0000
(13:15 -0200)
Cython/Compiler/PyrexTypes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/PyrexTypes.py
b/Cython/Compiler/PyrexTypes.py
index 15b8fa3e69c49573f57643fd9fabef322e0dd7c6..aa48d03a3253350051f591640931ebf8c370c1c9 100644
(file)
--- a/
Cython/Compiler/PyrexTypes.py
+++ b/
Cython/Compiler/PyrexTypes.py
@@
-1437,7
+1437,7
@@
static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x)
return PyLong_AsUnsignedLongLong(x);
}
else {
- PY_LONG_LONG val;
+
unsigned
PY_LONG_LONG val;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
val = __pyx_PyInt_AsUnsignedLongLong(tmp);
Py_DECREF(tmp);