diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-01 01:30:44 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-01 01:30:44 +0900 |
| commit | 6caeb8f8fba93d0003d20daa4181db2dbad948e1 (patch) | |
| tree | 3491ddc0fc56ae679f065e5f03e6378fd61cdbe9 /src/hash.c | |
| parent | 6a2cf46ff923a0969ba734f931fbdfbae6251929 (diff) | |
| download | mruby-6caeb8f8fba93d0003d20daa4181db2dbad948e1.tar.gz mruby-6caeb8f8fba93d0003d20daa4181db2dbad948e1.zip | |
hash function should use #eql? internally
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c index 8cb039cea..21d458def 100644 --- a/src/hash.c +++ b/src/hash.c @@ -32,7 +32,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key) static inline khint_t mrb_hash_ht_hash_equal(mrb_state *mrb, mrb_value a, mrb_value b) { - return mrb_equal(mrb, a, b); + return mrb_eql(mrb, a, b); } KHASH_INIT(ht, mrb_value, mrb_value, 1, mrb_hash_ht_hash_func, mrb_hash_ht_hash_equal); |
