summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index db8e48b6c6..b885e0724d 100644
--- a/compile.c
+++ b/compile.c
@@ -1454,8 +1454,9 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
rb_hash_aset(map, obj, INT2FIX(lobj->position - (pos+len)));
}
else {
+ int n = i/2 + 1;
rb_compile_warning(RSTRING_PTR(iseq->filename), iobj->line_no,
- "duplicated when clause is ignored");
+ "duplicated when clause (#%d) is ignored", n);
}
}
hide_obj(map);