summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormirichi <[email protected]>2014-04-20 23:10:24 +0900
committermirichi <[email protected]>2014-04-20 23:10:24 +0900
commitd3efe18143d6daf829c41cb6e46fdc460817e61a (patch)
treec99c770a7f5691d8d23fe63c1d3fdecd4a9209e0 /include
parenta6941101933a06e234f57a180d7119eafa9f1904 (diff)
downloadmruby-d3efe18143d6daf829c41cb6e46fdc460817e61a.tar.gz
mruby-d3efe18143d6daf829c41cb6e46fdc460817e61a.zip
do not reuse deleted entry. fixed
Diffstat (limited to 'include')
-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 bd33b7a6d..d2e87b8dd 100644
--- a/include/mruby/khash.h
+++ b/include/mruby/khash.h
@@ -180,7 +180,7 @@ kh_fill_flags(uint8_t *p, uint8_t c, size_t len)
return k; \
} \
} \
- else if (del_k != kh_end(h)) { \
+ else if (del_k == kh_end(h)) { \
del_k = k; \
} \
k = (k+(++step)) & khash_mask(h); \