summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c5a3bd0ad4..1e9b852d2e 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -133,8 +133,8 @@ argument_error(const rb_iseq_t *iseq, int miss_argc, int min_argc, int max_argc)
int line_no = rb_iseq_first_lineno(iseq);
err_line = rb_sprintf("%s:%d:in `%s'",
- RSTRING_PTR(iseq->filename),
- line_no, RSTRING_PTR(iseq->name));
+ RSTRING_PTR(iseq->location.filename),
+ line_no, RSTRING_PTR(iseq->location.name));
rb_funcall(bt, rb_intern("unshift"), 1, err_line);
}