mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-06-18 21:52:06 +00:00
Apply suggestion from @methane
This commit is contained in:
parent
a85e02d6a6
commit
1e28db75ba
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ static inline int unpack_callback_int64(unpack_user* u, int64_t d, msgpack_unpac
|
|||
p = PyLong_FromLongLong((PY_LONG_LONG)d);
|
||||
} else {
|
||||
p = PyLong_FromLong((long)d);
|
||||
}
|
||||
PyObject *p = PyLong_FromLongLong((PY_LONG_LONG)d);
|
||||
if (!p)
|
||||
return -1;
|
||||
*o = p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue