From 6ca73ab90c863aac6a690d340ffd37ef0fd45162 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 15 Sep 2011 05:24:42 +0000 Subject: * 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 --- iseq.c | 14 +++++++------- 1 file 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, -- cgit v1.2.3