Avoid using floating point number for HT_SEG_INCREASE_RATIO; ref #4182

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-12-11 10:54:47 +09:00
parent 265171a28c
commit 60da293d5c
+1 -1
View File
@@ -19,7 +19,7 @@ mrb_int mrb_float_id(mrb_float f);
#ifndef MRB_HT_INIT_SIZE
#define MRB_HT_INIT_SIZE 4
#endif
#define HT_SEG_INCREASE_RATIO 1.2
#define HT_SEG_INCREASE_RATIO 6 / 5
struct segkv {
mrb_value key;