Apply suggestion from @methane

This commit is contained in:
Inada Naoki 2026-04-21 18:08:06 +09:00 committed by GitHub
parent a85e02d6a6
commit 1e28db75ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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