mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
139eb4e862
commit
7dae879770
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ inline static int
|
|||
calc_lineno(const rb_iseq_t *iseq, const VALUE *pc)
|
||||
{
|
||||
size_t pos = (size_t)(pc - iseq->body->iseq_encoded);
|
||||
/* use pos-1 because PC points next instruction at the beggining of instruction */
|
||||
/* use pos-1 because PC points next instruction at the beginning of instruction */
|
||||
return rb_iseq_line_no(iseq, pos - 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue