From a01643bc75f627803e4d372ebfb99907cd629ab5 Mon Sep 17 00:00:00 2001 From: Songstats Audit Date: Sat, 29 Aug 2026 22:12:47 +0200 Subject: [PATCH] Support uint64 container headers --- ext/cbor/packer_class.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/cbor/packer_class.c b/ext/cbor/packer_class.c index 2a99ab9..e345dfe 100644 --- a/ext/cbor/packer_class.c +++ b/ext/cbor/packer_class.c @@ -128,14 +128,14 @@ static VALUE Packer_write_nil(VALUE self) static VALUE Packer_write_array_header(VALUE self, VALUE n) { PACKER(self, pk); - msgpack_packer_write_array_header(pk, NUM2UINT(n)); + msgpack_packer_write_array_header(pk, NUM2ULL(n)); return self; } static VALUE Packer_write_map_header(VALUE self, VALUE n) { PACKER(self, pk); - msgpack_packer_write_map_header(pk, NUM2UINT(n)); + msgpack_packer_write_map_header(pk, NUM2ULL(n)); return self; } @@ -301,4 +301,3 @@ void MessagePack_Packer_module_init(VALUE mMessagePack) rb_define_module_function(mMessagePack, "encode", MessagePack_pack_module_method, -1); rb_define_module_function(mMessagePack, "dump", MessagePack_dump_module_method, -1); } -