diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-15 23:42:19 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-15 23:42:19 +0900 |
| commit | 3655d4e0f486762628c0fd190a36a6199d898f29 (patch) | |
| tree | 7ab02389d8c6c0c58e79246e2d615ae4799b05e5 | |
| parent | 4aba93c969a9cbfcc1ebd122a9e14e1d60dccbde (diff) | |
| parent | bc929656fb1c675fde9b1652c10f7cd42d2f63fa (diff) | |
| download | mruby-3655d4e0f486762628c0fd190a36a6199d898f29.tar.gz mruby-3655d4e0f486762628c0fd190a36a6199d898f29.zip | |
Merge pull request #5000 from shuujii/unify-eql-receiver-in-Hash-according-to-Ruby
Unify `eql?` receiver in `Hash` according to Ruby
| -rw-r--r-- | src/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c index 8e7f97147..ec79a3def 100644 --- a/src/hash.c +++ b/src/hash.c @@ -373,7 +373,7 @@ ht_put(mrb_state *mrb, htable *t, mrb_value key, mrb_value val) deleted++; continue; } - if (ht_hash_equal(mrb, t, k, key)) { + if (ht_hash_equal(mrb, t, key, k)) { seg->e[i].val = val; return; } @@ -454,7 +454,7 @@ ht_get(mrb_state *mrb, htable *t, mrb_value key, mrb_value *vp) return FALSE; } if (mrb_undef_p(k)) continue; - if (ht_hash_equal(mrb, t, k, key)) { + if (ht_hash_equal(mrb, t, key, k)) { if (vp) *vp = seg->e[i].val; return TRUE; } |
