chiark
/
gitweb
/
~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
getulong: Compare with LONG_MAX to decide what Python type to use.
[pyke]
/
util.c
diff --git
a/util.c
b/util.c
index 166cdbbb1da1d8caf10299d2ce11c3af40139457..1739ebe9b4a2d4a78685b25b9d563a3227cfa0e5 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-34,7
+34,7
@@
PyObject *getulong(unsigned long w)
{
- if (w <=
MASK32
)
+ if (w <=
LONG_MAX
)
return (PyInt_FromLong(w));
else
return (PyLong_FromUnsignedLong(w));