mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2023 from ksss/khash-readable
Use kh_end instead to n_buckets
This commit is contained in:
@@ -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) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user