summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'ruby')
-rw-r--r--ruby/gem/lib/msgpack/version.rb2
-rw-r--r--ruby/pack.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/ruby/gem/lib/msgpack/version.rb b/ruby/gem/lib/msgpack/version.rb
index b2a5db6..229c746 100644
--- a/ruby/gem/lib/msgpack/version.rb
+++ b/ruby/gem/lib/msgpack/version.rb
@@ -2,7 +2,7 @@ module MessagePack
module VERSION #:nodoc:
MAJOR = 0
MINOR = 2
- TINY = 0
+ TINY = 1
STRING = [MAJOR, MINOR, TINY].join('.')
end
diff --git a/ruby/pack.c b/ruby/pack.c
index e62419d..5262024 100644
--- a/ruby/pack.c
+++ b/ruby/pack.c
@@ -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;
}