diff options
-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); |