diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-26 13:45:42 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-26 13:45:42 +0000 |
commit | de4c25a001fea438fc3d71fa3b2a71f8545028a7 (patch) | |
tree | c3ad231f09ae5b58500e9e4ee890fcf933d3dd12 | |
parent | ab083dc64071992b42092ea8d5f8ee53b679933e (diff) | |
download | ruby-de4c25a001fea438fc3d71fa3b2a71f8545028a7.tar.gz |
* template/id.h.tmpl: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | template/id.h.tmpl | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Jan 26 22:45:16 2011 Tanaka Akira <akr@fsij.org> + + * template/id.h.tmpl: parenthesize macro arguments. + Wed Jan 26 22:28:49 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com> * 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 |