mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
ruby: FIXNUM_P(self) may be false in Fixnum on JRuby
This commit is contained in:
parent
f50694cc96
commit
bbaf8c2f67
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ static VALUE MessagePack_Fixnum_to_msgpack(int argc, VALUE *argv, VALUE self)
|
|||
{
|
||||
ARG_BUFFER(out, argc, argv);
|
||||
#ifdef JRUBY
|
||||
msgpack_pack_long(out, rb_num2long(self));
|
||||
msgpack_pack_long(out, FIXNUM_P(self) ? FIX2LONG(self) : rb_num2ll(self));
|
||||
#else
|
||||
msgpack_pack_long(out, FIX2LONG(self));
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue