diff options
author | INADA Naoki <inada-n@klab.com> | 2014-05-26 01:17:53 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2014-05-26 01:17:53 +0900 |
commit | 7f623c09060fd2561efaa6e5b4ef40da9747ec9e (patch) | |
tree | b0d081578a3a4fe413449a38347807a2bdf85ae2 | |
parent | 61bac2f586e82313a0e618093bfed2435cd18983 (diff) | |
download | msgpack-python-7f623c09060fd2561efaa6e5b4ef40da9747ec9e.tar.gz |
Fix unpacking uint32 on 32bit or LLP64.
-rw-r--r-- | msgpack/unpack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h index 27e3b62..71142c6 100644 --- a/msgpack/unpack.h +++ b/msgpack/unpack.h @@ -62,7 +62,7 @@ static inline int unpack_callback_uint32(unpack_user* u, uint32_t d, msgpack_unp } else #endif { - p = PyInt_FromLong((long)d); + p = PyInt_FromUnsignedLong((long)d); } if (!p) return -1; |