summaryrefslogtreecommitdiff
path: root/template/id.h.tmpl
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-26 13:45:42 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-26 13:45:42 (GMT)
commitde4c25a001fea438fc3d71fa3b2a71f8545028a7 (patch)
treec3ad231f09ae5b58500e9e4ee890fcf933d3dd12 /template/id.h.tmpl
parentab083dc64071992b42092ea8d5f8ee53b679933e (diff)
* template/id.h.tmpl: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/id.h.tmpl')
-rw-r--r--template/id.h.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/id.h.tmpl b/template/id.h.tmpl
index 29548de..5ad9145 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