mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Avoid using floating point number for HT_SEG_INCREASE_RATIO; ref #4182
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user