mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (get_line_info, rb_iseq_line_no): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7db23668b0
commit
6ca73ab90c
1 changed files with 8 additions and 8 deletions
16
iseq.c
16
iseq.c
|
@ -704,12 +704,12 @@ get_line_info(const rb_iseq_t *iseq, size_t pos)
|
||||||
if (debug) printf("table[%"PRIdSIZE"]: position: %d, line: %d, pos: %"PRIdSIZE"\n",
|
if (debug) printf("table[%"PRIdSIZE"]: position: %d, line: %d, pos: %"PRIdSIZE"\n",
|
||||||
i, table[i].position, table[i].line_no, pos);
|
i, table[i].position, table[i].line_no, pos);
|
||||||
|
|
||||||
if (table[i].position == pos) {
|
if (table[i].position == pos) {
|
||||||
return &table[i];
|
return &table[i];
|
||||||
}
|
}
|
||||||
if (table[i].position > pos) {
|
if (table[i].position > pos) {
|
||||||
return &table[i-1];
|
return &table[i-1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &table[i-1];
|
return &table[i-1];
|
||||||
|
@ -732,11 +732,11 @@ rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos)
|
||||||
{
|
{
|
||||||
if (pos == 0) {
|
if (pos == 0) {
|
||||||
return find_line_no(iseq, pos);
|
return find_line_no(iseq, pos);
|
||||||
}
|
|
||||||
else {
|
|
||||||
return find_line_no(iseq, pos - 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return find_line_no(iseq, pos - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
insn_operand_intern(rb_iseq_t *iseq,
|
insn_operand_intern(rb_iseq_t *iseq,
|
||||||
|
|
Loading…
Add table
Reference in a new issue