summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--template/id.h.tmpl2
2 files changed, 5 insertions, 1 deletions
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 <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