diff options
author | Thomas White <taw@physics.org> | 2012-01-20 19:55:33 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:44 +0100 |
commit | 63048ec45119eb6c5718624ddf6dfa290747d4bf (patch) | |
tree | 86041dbfde607419a5265f1b58b5b8db7fd78bcd | |
parent | 725a51b82461b85ac55d1a47a2d26e919cd4ce37 (diff) |
Add an assertion
-rw-r--r-- | libcrystfel/src/peaks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index dbcf10cd..f837bcdb 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -583,6 +583,7 @@ static struct integr_ind *sort_reflections(RefList *list, UnitCell *cell, il[i].refl = refl; i++; + assert(i < *n); } qsort(il, *n, sizeof(struct integr_ind), compare_resolution); |