diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-21 13:21:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-21 13:21:10 +0000 |
commit | 86d4d10479821090160fe1258b86cb61a812e083 (patch) | |
tree | 18bc732793a90f84c2314b11ddac6b2d64f10401 | |
parent | b1428ace6b786947fff9c964069adf5dd42f1fe0 (diff) | |
download | ruby-86d4d10479821090160fe1258b86cb61a812e083.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/ruby/ruby.h | 2 |
2 files changed, 5 insertions, 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. diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 200a648738..189f2fc8e1 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -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)) |