ruby-changes:18634
From: akr <ko1@a...>
Date: Wed, 26 Jan 2011 22:56:10 +0900 (JST)
Subject: [ruby-changes:18634] Ruby:r30658 (trunk): * template/id.h.tmpl: parenthesize macro arguments.
akr 2011-01-26 22:45:42 +0900 (Wed, 26 Jan 2011) New Revision: 30658 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30658 Log: * template/id.h.tmpl: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/template/id.h.tmpl Index: ChangeLog =================================================================== --- ChangeLog (revision 30657) +++ ChangeLog (revision 30658) @@ -1,3 +1,7 @@ +Wed Jan 26 22:45:16 2011 Tanaka Akira <akr@f...> + + * template/id.h.tmpl: parenthesize macro arguments. + Wed Jan 26 22:28:49 2011 CHIKANAGA Tomoyuki <nagachika00@g...> * vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate Index: template/id.h.tmpl =================================================================== --- template/id.h.tmpl (revision 30657) +++ template/id.h.tmpl (revision 30658) @@ -131,7 +131,7 @@ #ifdef tLAST_TOKEN struct ruby_method_ids_check { #define ruby_method_id_check_for(name, value) \ - int checking_for_##name[name == value ? 1 : -1] + int checking_for_##name[name == (value) ? 1 : -1] % tokens.map do |token, value| ruby_method_id_check_for(<%=token%>, <%=value%>); % end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/