8000 Fix unpacking uint32 on 32bit or LLP64. · imclab/msgpack-python@7f623c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f623c0

Browse files
committed
Fix unpacking uint32 on 32bit or LLP64.
1 parent 61bac2f commit 7f623c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/unpack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static inline int unpack_callback_uint32(unpack_user* u, uint32_t d, msgpack_unp
6262
} else
6363
#endif
6464
{
65-
p = PyInt_FromLong((long)d);
65+
p = PyInt_FromUnsignedLong((long)d);
6666
}
6767
if (!p)
6868
return -1;

0 commit comments

Comments
 (0)
0