Fix unpacking uint32 on 32bit or LLP64.

This commit is contained in:
INADA Naoki 2014-05-26 01:17:53 +09:00
parent 61bac2f586
commit 7f623c0906

View file

@ -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;