mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix previsous change again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae0ca36f8b
commit
2f59e3130c
1 changed files with 6 additions and 4 deletions
|
@ -455,9 +455,10 @@ static inline VALUE
|
|||
INT2NUM(int v)
|
||||
{
|
||||
# if SIZEOF_VALUE <= SIZEOF_INT
|
||||
if (FIXABLE(v)) return INT2FIX(v);
|
||||
if (!FIXABLE(v))
|
||||
return rb_int2big(v);
|
||||
# endif
|
||||
return rb_int2big(v);
|
||||
return INT2FIX(v);
|
||||
}
|
||||
static inline VALUE
|
||||
LONG2NUM(long v)
|
||||
|
@ -469,9 +470,10 @@ static inline VALUE
|
|||
UINT2NUM(unsigned int v)
|
||||
{
|
||||
# if SIZEOF_VALUE <= SIZEOF_INT
|
||||
if (POSFIXABLE(v)) return LONG2FIX(v);
|
||||
if (!POSFIXABLE(v))
|
||||
return rb_uint2big(v);
|
||||
# endif
|
||||
return rb_uint2big(v);
|
||||
return LONG2FIX(v);
|
||||
}
|
||||
static inline VALUE
|
||||
ULONG2NUM(unsigned long v)
|
||||
|
|
Loading…
Reference in a new issue