diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-15 05:24:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-15 05:24:42 +0000 |
commit | 6ca73ab90c863aac6a690d340ffd37ef0fd45162 (patch) | |
tree | 7c4fc278f97d0eff2932ae979a495aa04085d26b /iseq.c | |
parent | 7db23668b0fd02069fcacf275488ee812cc15bd8 (diff) |
* 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
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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", i, table[i].position, table[i].line_no, pos); - if (table[i].position == pos) { - return &table[i]; - } + if (table[i].position == pos) { + return &table[i]; + } if (table[i].position > pos) { 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) { return find_line_no(iseq, pos); - } - else { + } + else { return find_line_no(iseq, pos - 1); - } } +} static VALUE insn_operand_intern(rb_iseq_t *iseq, |