mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use division expression instead of some floating point literals
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user