diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-08 11:20:11 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-08 11:20:11 +0900 |
| commit | f93734f6228e541ea4eee5f2dd208981ce6e38bd (patch) | |
| tree | f9cae1ed00e9b565e62c875106a7b71694b2966e /mrbgems/mruby-compiler | |
| parent | 625976d7931006bae7e960e561ecdaccb0cb6a28 (diff) | |
| parent | 366848996a6cce8e733246bce6c3f76d797003bb (diff) | |
| download | mruby-f93734f6228e541ea4eee5f2dd208981ce6e38bd.tar.gz mruby-f93734f6228e541ea4eee5f2dd208981ce6e38bd.zip | |
Merge pull request #4110 from dearblue/fix-typo1
Fix typo
Diffstat (limited to 'mrbgems/mruby-compiler')
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 8be9a8ebe..74504ffd1 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -419,7 +419,7 @@ gen_move(codegen_scope *s, uint16_t dst, uint16_t src, int nopeep) } else { struct mrb_insn_data data = mrb_last_insn(s); - + switch (data.insn) { case OP_MOVE: if (dst == src) return; /* remove useless MOVE */ @@ -456,7 +456,7 @@ gen_return(codegen_scope *s, uint8_t op, uint16_t src) } else { struct mrb_insn_data data = mrb_last_insn(s); - + if (data.insn == OP_MOVE && src == data.a) { s->pc = s->lastpc; genop_1(s, op, data.b); @@ -764,7 +764,7 @@ lambda_body(codegen_scope *s, node *tree, int blk) kd = tail && tail->cdr->cdr->car? 1 : 0; /* block argument? */ ba = tail && tail->cdr->cdr->cdr->car ? 1 : 0; - + if (ma > 0x1f || oa > 0x1f || pa > 0x1f || ka > 0x1f) { codegen_error(s, "too many formal arguments"); } @@ -3118,7 +3118,7 @@ generate_code(mrb_state *mrb, parser_state *p, int val) scope->filename_index = p->current_filename_index; MRB_TRY(&scope->jmp) { - mrb->jmp = &scope->jmp; + mrb->jmp = &scope->jmp; /* prepare irep */ codegen(scope, p->tree, val); proc = mrb_proc_new(mrb, scope->irep); |
