Skip to content

Commit

Permalink
Remove unnecessary indirection; ref #3557
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 3, 2017
1 parent 8193c0b commit a14a930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrbgems/mruby-compiler/core/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2872,8 +2872,8 @@ scope_finish(codegen_scope *s)
irep->syms = (mrb_sym*)codegen_realloc(s, irep->syms, sizeof(mrb_sym)*irep->slen);
irep->reps = (mrb_irep**)codegen_realloc(s, irep->reps, sizeof(mrb_irep*)*irep->rlen);
if (s->filename) {
s->irep->filename = mrb_parser_get_filename(s->parser, s->filename_index);
mrb_debug_info_append_file(mrb, s->irep, s->debug_start_pos, s->pc);
irep->filename = mrb_parser_get_filename(s->parser, s->filename_index);
mrb_debug_info_append_file(mrb, irep, s->debug_start_pos, s->pc);

fname_len = strlen(s->filename);
fname = (char*)codegen_malloc(s, fname_len + 1);
Expand Down

0 comments on commit a14a930

Please sign in to comment.