diff options
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 5eef2af59..0485bf9f3 100644 --- a/include/mruby/khash.h +++ b/include/mruby/khash.h @@ -112,10 +112,10 @@ static const uint8_t __m[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; khkey_t *old_keys = h->keys; \ khval_t *old_vals = h->vals; \ khint_t old_n_buckets = h->n_buckets; \ + khint_t i; \ h->n_buckets = new_n_buckets; \ kh_alloc_##name(h); \ /* relocate */ \ - khint_t i; \ for( i=0 ; i<old_n_buckets ; i++ ){ \ if( !__ac_isempty(old_e_flags, old_d_flags, i) ){ \ khint_t k = kh_put_##name(h, old_keys[i]); \ |
