~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d12daa5
)
buffer.c: Return 64-bit values, even if they're too big for `getulong'.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 11 Oct 2019 09:01:11 +0000
(10:01 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 17 Nov 2019 01:43:05 +0000
(
01:43
+0000)
buffer.c
patch
|
blob
|
blame
|
history
diff --git
a/buffer.c
b/buffer.c
index
4160638
..
17d7caa
100644
(file)
--- a/
buffer.c
+++ b/
buffer.c
@@
-112,7
+112,8
@@
end:
uint##n x; \
if (!PyArg_ParseTuple(arg, ":getu" #w)) goto end; \
if (buf_getu##w(BUF_B(me), &x)) BUFERR(); \
- return (getulong(x)); \
+ if (MASK##W <= ULONG_MAX) return (getulong(x)); \
+ else { kludge64 y; ASSIGN64(y, x); return (getk64(y)); } \
end: \
return (0); \
}