ruby-changes:18593
From: akr <ko1@a...>
Date: Fri, 21 Jan 2011 00:01:26 +0900 (JST)
Subject: [ruby-changes:18593] Ruby:r30616 (trunk): * node.h: parenthesize macro arguments.
akr 2011-01-20 23:59:59 +0900 (Thu, 20 Jan 2011) New Revision: 30616 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30616 Log: * node.h: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/node.h Index: ChangeLog =================================================================== --- ChangeLog (revision 30615) +++ ChangeLog (revision 30616) @@ -1,3 +1,7 @@ +Thu Jan 20 23:58:02 2011 Tanaka Akira <akr@f...> + + * node.h: parenthesize macro arguments. + Thu Jan 20 23:25:28 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * configure.in: Add '#include <stdlib.h>' to Index: node.h =================================================================== --- node.h (revision 30615) +++ node.h (revision 30616) @@ -269,7 +269,7 @@ #define nd_type(n) ((int) (((RNODE(n))->flags & NODE_TYPEMASK)>>NODE_TYPESHIFT)) #define nd_set_type(n,t) \ - RNODE(n)->flags=((RNODE(n)->flags&~NODE_TYPEMASK)|((((unsigned long)t)<<NODE_TYPESHIFT)&NODE_TYPEMASK)) + RNODE(n)->flags=((RNODE(n)->flags&~NODE_TYPEMASK)|((((unsigned long)(t))<<NODE_TYPESHIFT)&NODE_TYPEMASK)) #define NODE_LSHIFT (NODE_TYPESHIFT+7) #define NODE_LMASK (((SIGNED_VALUE)1<<(sizeof(VALUE)*CHAR_BIT-NODE_LSHIFT))-1) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/