mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1349 from mirichi/khash
kh_resize_##name bug fixed.
This commit is contained in:
@@ -161,7 +161,7 @@ kh_fill_flags(uint8_t *p, uint8_t c, size_t len)
|
||||
kh_alloc_##name(h); \
|
||||
/* relocate */ \
|
||||
for (i=0 ; i<old_n_buckets ; i++) { \
|
||||
if (!__ac_isempty(old_ed_flags, i)) { \
|
||||
if (!__ac_iseither(old_ed_flags, i)) { \
|
||||
khint_t k = kh_put_##name(h, old_keys[i]); \
|
||||
kh_value(h,k) = old_vals[i]; \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user