From: Johannes Schindelin <johannes.schindelin@xxxxxx> The assertion in question really indicates a bug, when triggered, so we might just as well use the sanctioned method to report it. Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx> --- line-log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/line-log.c b/line-log.c index bc7ef69d6..0e09df9db 100644 --- a/line-log.c +++ b/line-log.c @@ -72,7 +72,9 @@ void range_set_append(struct range_set *rs, long a, long b) rs->ranges[rs->nr-1].end = b; return; } - assert(rs->nr == 0 || rs->ranges[rs->nr-1].end <= a); + if (rs->nr > 0 && rs->ranges[rs->nr-1].end > a) + BUG("append %ld-%ld, after %ld-%ld?!?", a, b, + rs->ranges[rs->nr-1].start, rs->ranges[rs->nr-1].end); range_set_append_unsafe(rs, a, b); } -- gitgitgadget