From de4c25a001fea438fc3d71fa3b2a71f8545028a7 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 26 Jan 2011 13:45:42 +0000 Subject: * template/id.h.tmpl: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ template/id.h.tmpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8406e97acf..041795ae13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jan 26 22:45:16 2011 Tanaka Akira + + * template/id.h.tmpl: parenthesize macro arguments. + Wed Jan 26 22:28:49 2011 CHIKANAGA Tomoyuki * vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate diff --git a/template/id.h.tmpl b/template/id.h.tmpl index 29548de8f4..5ad91452ec 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -131,7 +131,7 @@ enum ruby_method_ids { #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 -- cgit v1.2.3