◐ Shell
clean mode source ↗

fix: properly handle return codes in `pack_timestamp` by KowalskiThomas · Pull Request #672 · msgpack/msgpack-python

} else { /* seconds is signed or >34bits */ unsigned char buf[12]; _msgpack_store32(&buf[0], nanoseconds); _msgpack_store64(&buf[4], seconds); msgpack_pack_ext(x, -1, 12); msgpack_pack_raw_body(x, buf, 12); /* seconds is signed or >34bits */ unsigned char buf[12]; _msgpack_store32(&buf[0], nanoseconds); _msgpack_store64(&buf[4], seconds); ret = msgpack_pack_ext(x, -1, 12); if (ret != 0) return ret;
return msgpack_pack_raw_body(x, buf, 12); } return 0; }