summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--msgpack/unpack.h2
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;