Avoid using floating point number for HT_SEG_INCREASE_RATIO; ref #4182

parent 265171a2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment