aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-25 06:51:34 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-25 06:51:34 +0000
commit8739317d1773838c5528965d82a524f8623c62dd (patch)
tree6a00d554010fd79f10d6cf7ef2fc42a29d8e68db /st.c
parent2f22588000fc4027ec2d9366186c1a8efb68c7a4 (diff)
downloadruby-8739317d1773838c5528965d82a524f8623c62dd.tar.gz
fix macro expansion bug
This previous "key" macro argument accidentally replaced `(ptr)->key` part. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index c11078a2b8..528c528572 100644
--- a/st.c
+++ b/st.c
@@ -171,8 +171,8 @@ static const struct st_hash_type type_strcasehash = {
#endif
#define EQUAL(tab,x,y) ((x) == (y) || (*(tab)->type->compare)((x),(y)) == 0)
-#define PTR_EQUAL(tab, ptr, hash_val, key) \
- ((ptr)->hash == (hash_val) && EQUAL((tab), (key), (ptr)->key))
+#define PTR_EQUAL(tab, ptr, hash_val, key_) \
+ ((ptr)->hash == (hash_val) && EQUAL((tab), (key_), (ptr)->key))
/* Features of a table. */
struct st_features {