From 8845c8d8f881c83ae17b21687744fd9edc442133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 18 Aug 2010 19:16:14 +0000 Subject: [PATCH] Be more explicit on the significance of the start pointers for 1:nbin. --- partition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partition.c b/partition.c index 5354c17aa..b6911185a 100644 --- a/partition.c +++ b/partition.c @@ -191,7 +191,7 @@ partition_invert(int nc, const int *p, int *pi, int *inverse) /* Count elements per bin */ for (i = 0; i < nc ; i++) { pi[ p[i] ]++; } - /* Derive start pointers for b=1:nbin */ + /* Derive start pointers for b=1:nbin (== ubound for b=0:nbin-1) */ for (b = 1; b < nbin; b++) { pi[b] += pi[b - 1]; } /* Set end pointer in last bin */