diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-06 23:19:40 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-06 23:19:40 +0900 |
| commit | 0d9cc9ccc6fac19f1d99660bdc2014e314e89b43 (patch) | |
| tree | 3cb85c68c2b489accceada4bb5bfe2286f016774 /include | |
| parent | e54d775cccdf16ac2d0dc10156678c7a04b5e502 (diff) | |
| parent | f946465fe41688c5722b91545d262bc98fdf6b90 (diff) | |
| download | mruby-0d9cc9ccc6fac19f1d99660bdc2014e314e89b43.tar.gz mruby-0d9cc9ccc6fac19f1d99660bdc2014e314e89b43.zip | |
Merge pull request #2023 from ksss/khash-readable
Use kh_end instead to n_buckets
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/khash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/khash.h b/include/mruby/khash.h index ad83e8cb2..a2e6ef6f7 100644 --- a/include/mruby/khash.h +++ b/include/mruby/khash.h @@ -140,7 +140,7 @@ kh_fill_flags(uint8_t *p, uint8_t c, size_t len) } \ k = (k+khash_inc(h)) % h->n_buckets; \ } \ - return h->n_buckets; \ + return kh_end(h); \ } \ void kh_resize_##name(mrb_state *mrb, kh_##name##_t *h, khint_t new_n_buckets) \ { \ |
