mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
4cf6302d9d
commit
766864166f
1 changed files with 2 additions and 2 deletions
4
st.c
4
st.c
|
@ -171,8 +171,8 @@ static const struct st_hash_type type_strcasehash = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define EQUAL(tab,x,y) ((x) == (y) || (*(tab)->type->compare)((x),(y)) == 0)
|
#define EQUAL(tab,x,y) ((x) == (y) || (*(tab)->type->compare)((x),(y)) == 0)
|
||||||
#define PTR_EQUAL(tab, ptr, hash_val, key) \
|
#define PTR_EQUAL(tab, ptr, hash_val, key_) \
|
||||||
((ptr)->hash == (hash_val) && EQUAL((tab), (key), (ptr)->key))
|
((ptr)->hash == (hash_val) && EQUAL((tab), (key_), (ptr)->key))
|
||||||
|
|
||||||
/* Features of a table. */
|
/* Features of a table. */
|
||||||
struct st_features {
|
struct st_features {
|
||||||
|
|
Loading…
Add table
Reference in a new issue