aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,