fixed wandering filename problem

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-09-08 01:20:43 +09:00
parent cc98f191fa
commit 89e9df2681
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1157,7 +1157,7 @@ codegen(codegen_scope *s, node *tree, int val)
if (!tree) return;
if (s->irep && s->pc > 0 && s->filename_index != tree->filename_index) {
if (s->irep && s->filename_index != tree->filename_index) {
s->irep->filename = mrb_parser_get_filename(s->parser, s->filename_index);
mrb_debug_info_append_file(s->mrb, s->irep, s->debug_start_pos, s->pc);
s->debug_start_pos = s->pc;