summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-07 05:31:47 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-07 05:31:47 +0000
commit40b1aa9adf04fbd02dcd4bab1197659625951200 (patch)
treee1e606a3371ccc9e3dbdf62b9b650be2d1dc0ffb /vm_insnhelper.c
parent12f368d6a48d7eb35a9c802d1ae4824b876f7c74 (diff)
* proc.c: catch up last commit.
Type of return value of rb_iseq_first_lineno() is now VALUE. * vm_insnhelper.c (argument_error): ditto. * vm_method.c (rb_method_entry_make): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index b352767922..fc9491f312 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -131,7 +131,7 @@ argument_error(const rb_iseq_t *iseq, int miss_argc, int min_argc, int max_argc)
VALUE err_line = 0;
if (iseq) {
- int line_no = rb_iseq_first_lineno(iseq->self);
+ int line_no = FIX2INT(rb_iseq_first_lineno(iseq->self));
err_line = rb_sprintf("%s:%d:in `%s'",
RSTRING_PTR(iseq->location.path),