summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-15 05:24:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-15 05:24:42 +0000
commit6ca73ab90c863aac6a690d340ffd37ef0fd45162 (patch)
tree7c4fc278f97d0eff2932ae979a495aa04085d26b /iseq.c
parent7db23668b0fd02069fcacf275488ee812cc15bd8 (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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/iseq.c b/iseq.c
index 27c4ab7769..926a07da15 100644
--- a/iseq.c
+++ b/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",
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,