mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/ruby.h (FIXNUM_P): simple flag should be int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b1428ace6b
commit
86d4d10479
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Jan 21 22:21:07 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (FIXNUM_P): simple flag should be int.
|
||||
|
||||
Sat Jan 21 21:51:19 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* encoding.c (rb_enc_compatible): fix segv on symbols.
|
||||
|
|
|
@ -336,7 +336,7 @@ rb_long2int_inline(long n)
|
|||
|
||||
#define FIX2LONG(x) (long)RSHIFT((SIGNED_VALUE)(x),1)
|
||||
#define FIX2ULONG(x) ((((VALUE)(x))>>1)&LONG_MAX)
|
||||
#define FIXNUM_P(f) (((SIGNED_VALUE)(f))&FIXNUM_FLAG)
|
||||
#define FIXNUM_P(f) (((int)(SIGNED_VALUE)(f))&FIXNUM_FLAG)
|
||||
#define POSFIXABLE(f) ((f) < FIXNUM_MAX+1)
|
||||
#define NEGFIXABLE(f) ((f) >= FIXNUM_MIN)
|
||||
#define FIXABLE(f) (POSFIXABLE(f) && NEGFIXABLE(f))
|
||||
|
|
Loading…
Add table
Reference in a new issue