Permalink
Browse files

Remove unnecessary indirection; ref #3557

  • Loading branch information...
matz committed Apr 3, 2017
1 parent 8193c0b commit a14a930c800aa50a191922580d53a2ce09287912
Showing with 2 additions and 2 deletions.
  1. +2 −2 mrbgems/mruby-compiler/core/codegen.c
@@ -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);

0 comments on commit a14a930

Please sign in to comment.