mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Fix unpacking uint32 on 32bit or LLP64.
This commit is contained in:
parent
61bac2f586
commit
7f623c0906
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue