diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-07-25 19:40:05 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-25 19:40:05 +0900 |
| commit | 425b5f32d6f4433c759663c2dad797a9d0769266 (patch) | |
| tree | 02a13ed77148aa8d7bd2a318f2a9b74ec7984cee /src | |
| parent | f868d7d357d7456f15fa4c1d0219784aa1c8c2c6 (diff) | |
| parent | 0c88c717861a4ec182e41f2c290ec0ef31029967 (diff) | |
| download | mruby-425b5f32d6f4433c759663c2dad797a9d0769266.tar.gz mruby-425b5f32d6f4433c759663c2dad797a9d0769266.zip | |
Merge pull request #5049 from shuujii/use-type-tag-for-hash-code-in-ht_hash_func
Use type tag for hash code in `ht_hash_func()`
Diffstat (limited to 'src')
| -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 9a690bf1a..128836fce 100644 --- a/src/hash.c +++ b/src/hash.c @@ -73,7 +73,7 @@ ht_hash_func(mrb_state *mrb, htable *t, mrb_value key) default: hv = mrb_funcall(mrb, key, "hash", 0); - h = (size_t)t ^ (size_t)mrb_fixnum(hv); + h = (size_t)tt ^ (size_t)mrb_fixnum(hv); break; } if (index && (index != t->index || capa != index->capa)) { |
