diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-08 08:45:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-08 08:45:59 +0900 |
| commit | 7ae20e0785704bce1a5bf7183fc9202336ad8676 (patch) | |
| tree | 197211b380b61bbdc575e67d7398d56d05195f79 | |
| parent | 37f6e4229359ad9d4e0dfcd230d9dff8e9279ea4 (diff) | |
| download | mruby-7ae20e0785704bce1a5bf7183fc9202336ad8676.tar.gz mruby-7ae20e0785704bce1a5bf7183fc9202336ad8676.zip | |
Simplify `MRB_WITHOUT_FLOAT` condtion
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index fce5ac490..460368f88 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -2271,8 +2271,9 @@ codegen(codegen_scope *s, node *tree, int val) genop(s, MKOP_ABx(OP_LOADL, cursp(), off)); } - else { + else #endif + { if (i < MAXARG_sBx && i > -MAXARG_sBx) { co = MKOP_AsBx(OP_LOADI, cursp(), i); } @@ -2281,9 +2282,7 @@ codegen(codegen_scope *s, node *tree, int val) co = MKOP_ABx(OP_LOADL, cursp(), off); } genop(s, co); -#ifndef MRB_WITHOUT_FLOAT } -#endif push(); } break; |
