aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-12 11:54:28 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-12 11:54:28 +0000
commit77a12692eeb0a2204b740dfece9f3015975af3be (patch)
tree3b0ac777930cfea17eb9ddaffd32f0bd4a794933
parent8553b70a39bf4707cee6d667fc5903f09bf0a525 (diff)
downloadruby-77a12692eeb0a2204b740dfece9f3015975af3be.tar.gz
* include/ruby/st.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--include/ruby/st.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 76b8017f8c..45a21b6f5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Apr 12 20:54:12 2011 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/st.h: parenthesize macro arguments.
+
Tue Apr 12 19:19:50 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/uri/common.rb: avoid race condition. fixes #4572
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 960b1bde6a..50f2a75328 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -95,7 +95,7 @@ struct st_table {
struct st_table_entry *head, *tail;
};
-#define st_is_member(table,key) st_lookup(table,key,(st_data_t *)0)
+#define st_is_member(table,key) st_lookup((table),(key),(st_data_t *)0)
enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK};