From 7f623c09060fd2561efaa6e5b4ef40da9747ec9e Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Mon, 26 May 2014 01:17:53 +0900 Subject: [PATCH] Fix unpacking uint32 on 32bit or LLP64. --- msgpack/unpack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;