ruby-changes:28058
From: akr <ko1@a...>
Date: Thu, 4 Apr 2013 22:54:23 +0900 (JST)
Subject: [ruby-changes:28058] akr:r40110 (trunk): * include/ruby/ruby.h (FIX2LONG): Parenthesize the macro body.
akr 2013-04-04 22:54:10 +0900 (Thu, 04 Apr 2013) New Revision: 40110 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40110 Log: * include/ruby/ruby.h (FIX2LONG): Parenthesize the macro body. Modified files: trunk/ChangeLog trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 40109) +++ include/ruby/ruby.h (revision 40110) @@ -336,7 +336,7 @@ rb_long2int_inline(long n) https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L336 #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) Index: ChangeLog =================================================================== --- ChangeLog (revision 40109) +++ ChangeLog (revision 40110) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Apr 4 22:53:23 2013 Tanaka Akira <akr@f...> + + * include/ruby/ruby.h (FIX2LONG): Parenthesize the macro body. + Thu Apr 4 22:32:32 2013 Tanaka Akira <akr@f...> * time.c (time_strftime): Describe %L and %N truncates digits under -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/