1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/ruby.h (FIX2LONG): Parenthesize the macro body.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-04-04 13:54:10 +00:00
parent f674d8623d
commit 61b245cc40
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Apr 4 22:53:23 2013 Tanaka Akira <akr@fsij.org>
* include/ruby/ruby.h (FIX2LONG): Parenthesize the macro body.
Thu Apr 4 22:32:32 2013 Tanaka Akira <akr@fsij.org>
* time.c (time_strftime): Describe %L and %N truncates digits under

View file

@ -336,7 +336,7 @@ rb_long2int_inline(long n)
#define MODET2NUM(v) INT2NUM(v)
#endif
#define FIX2LONG(x) (long)RSHIFT((SIGNED_VALUE)(x),1)
#define FIX2LONG(x) ((long)RSHIFT((SIGNED_VALUE)(x),1))
#define FIX2ULONG(x) ((unsigned long)FIX2LONG(x))
#define FIXNUM_P(f) (((int)(SIGNED_VALUE)(f))&FIXNUM_FLAG)
#define POSFIXABLE(f) ((f) < FIXNUM_MAX+1)