mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 14:45:38 +02:00
ruby binding: fix Fixnum serialization bug on x86_64
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@88 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#define msgpack_pack_inline_func(name) \
|
||||
static void msgpack_pack_##name
|
||||
static inline void msgpack_pack_##name
|
||||
|
||||
#define msgpack_pack_user VALUE
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
/*
|
||||
static void msgpack_pack_int(VALUE x, int d);
|
||||
static void msgpack_pack_unsigned_int(VALUE x, unsigned int d);
|
||||
static void msgpack_pack_long(VALUE x, long d);
|
||||
static void msgpack_pack_unsigned_long(VALUE x, unsigned long d);
|
||||
static void msgpack_pack_uint8(VALUE x, uint8_t d);
|
||||
static void msgpack_pack_uint16(VALUE x, uint16_t d);
|
||||
static void msgpack_pack_uint32(VALUE x, uint32_t d);
|
||||
@@ -93,7 +95,7 @@ static VALUE MessagePack_FalseClass_to_msgpack(int argc, VALUE *argv, VALUE self
|
||||
static VALUE MessagePack_Fixnum_to_msgpack(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
ARG_BUFFER(out, argc, argv);
|
||||
msgpack_pack_int(out, FIX2INT(self));
|
||||
msgpack_pack_long(out, FIX2LONG(self));
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user