diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-03 04:28:58 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-03 04:28:58 -0800 |
| commit | 4354999fc628d248da85eaf7caf4e951cb421c92 (patch) | |
| tree | e9b051e73cc45f58a1ca2964e33228803752e497 /src/codegen.c | |
| parent | bc46c374b40354b1f1320d5bea75fd852d0ea9ed (diff) | |
| parent | 6cd7017ec11b0cbe40e8dbe462e5eda9ad7ce97c (diff) | |
| download | mruby-4354999fc628d248da85eaf7caf4e951cb421c92.tar.gz mruby-4354999fc628d248da85eaf7caf4e951cb421c92.zip | |
Merge pull request #933 from monaka/pr-remove-trailing-whitespaces-20130303
Remove trailing whitespaces. This is just a cosmetic change.
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/codegen.c b/src/codegen.c index ff7e87c28..ca587aeb9 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -330,7 +330,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val) if (c1 == OP_SUB) c = -c; if (c > 127 || c < -127) break; - if (0 <= c) + if (0 <= c) s->iseq[s->pc-1] = MKOP_ABC(OP_ADDI, GETARG_A(i), GETARG_B(i), c); else s->iseq[s->pc-1] = MKOP_ABC(OP_SUBI, GETARG_A(i), GETARG_B(i), -c); @@ -1161,7 +1161,7 @@ codegen(codegen_scope *s, node *tree, int val) if (e) { if (val) pop(); pos2 = new_label(s); - genop(s, MKOP_sBx(OP_JMP, 0)); + genop(s, MKOP_sBx(OP_JMP, 0)); dispatch(s, pos1); codegen(s, e, val); dispatch(s, pos2); @@ -1951,7 +1951,7 @@ codegen(codegen_scope *s, node *tree, int val) pop(); sym = new_sym(s, mrb_intern(s->mrb, "compile")); genop(s, MKOP_ABC(OP_SEND, cursp(), sym, argc)); - mrb_gc_arena_restore(s->mrb, ai); + mrb_gc_arena_restore(s->mrb, ai); push(); } break; @@ -1999,7 +1999,7 @@ codegen(codegen_scope *s, node *tree, int val) pop(); sym = new_sym(s, mrb_intern(s->mrb, "compile")); genop(s, MKOP_ABC(OP_SEND, cursp(), sym, argc)); - mrb_gc_arena_restore(s->mrb, ai); + mrb_gc_arena_restore(s->mrb, ai); push(); } else { |
