mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix a wrong lineno in backtrace for cfunc
lineno is an int, and INT2FIX(0) was assigned. [Bug #15719] [ruby-core:91911] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8540a3c2e
commit
e1038377a9
2 changed files with 15 additions and 1 deletions
|
@ -352,7 +352,7 @@ location_to_str(rb_backtrace_location_t *loc)
|
|||
}
|
||||
else {
|
||||
file = GET_VM()->progname;
|
||||
lineno = INT2FIX(0);
|
||||
lineno = 0;
|
||||
}
|
||||
name = rb_id2str(loc->body.cfunc.mid);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue