~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
166cdbb
..
1739ebe
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));