summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-09 10:59:05 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-09 10:59:05 +0900
commit22bd603a7ee41f018c81fad94e6f18738713245b (patch)
tree40bc37182a94822f249fedcadf679adbdbf8f69c
parent164c0463b26d3932902503401efa20a8bf649ad3 (diff)
downloadmruby-22bd603a7ee41f018c81fad94e6f18738713245b.tar.gz
mruby-22bd603a7ee41f018c81fad94e6f18738713245b.zip
move declaration in the middle
-rw-r--r--include/mruby/khash.h2
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]); \