summaryrefslogtreecommitdiff
path: root/vm_method.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_method.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_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 54c024bd06..da1a94c70a 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -290,7 +290,7 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type,
break;
}
if (iseq && !NIL_P(iseq->location.path)) {
- int line = iseq->line_info_table ? rb_iseq_first_lineno(iseq->self) : 0;
+ int line = iseq->line_info_table ? FIX2INT(rb_iseq_first_lineno(iseq->self)) : 0;
rb_compile_warning(RSTRING_PTR(iseq->location.path), line,
"previous definition of %s was here",
rb_id2name(old_def->original_id));