Use division expression instead of some floating point literals

This commit is contained in:
YAMAMOTO Masaya
2017-10-06 17:23:26 +09:00
parent 80e03f3ffb
commit 679dfd75a8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ gc_protect(mrb_state *mrb, mrb_gc *gc, struct RBasic *p)
#else
if (gc->arena_idx >= gc->arena_capa) {
/* extend arena */
gc->arena_capa = (int)(gc->arena_capa * 1.5);
gc->arena_capa = (int)(gc->arena_capa * 3 / 2);
gc->arena = (struct RBasic**)mrb_realloc(mrb, gc->arena, sizeof(struct RBasic*)*gc->arena_capa);
}
#endif