From: Francois Fleuret Date: Mon, 13 Feb 2012 17:14:42 +0000 (+0100) Subject: Cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f6df6ed91c745f06cdaec8983a7b1485994da39;p=selector.git Cosmetics. --- diff --git a/selector.c b/selector.c index 0cb82ea..ddddb11 100644 --- a/selector.c +++ b/selector.c @@ -335,8 +335,8 @@ int add_interval(int n, int *switches, int start, int end) { while(g < n && switches[g] <= end) { g++; } if(f == n) { - /* switches[n] start end */ - /* XXXXXXXXXX| */ + /* switches[n-1] start end */ + /* XXXXXXXXXXXX| */ switches[f] = start; switches[f+1] = end; return n + 2;