diff --git a/src/libCom/ellLib/ellSort.c b/src/libCom/ellLib/ellSort.c index ee5f68ca4..2f8f2748b 100644 --- a/src/libCom/ellLib/ellSort.c +++ b/src/libCom/ellLib/ellSort.c @@ -49,16 +49,11 @@ void ellSortStable(ELLLIST *pList, pListCmp cmp) /* shift previous results to inputs */ ellConcat(&INP, pList); - - assert(ellCount(pList)==0); while(ellCount(&INP)) { ELLNODE *p, *q; - assert(ellCount(&P)==0); - assert(ellCount(&Q)==0); - /* Pull out the next pair of sub-lists */ ellMoveN(&Q, &INP, insize); ellMoveN(&P, &INP, insize); @@ -73,7 +68,7 @@ void ellSortStable(ELLLIST *pList, pListCmp cmp) } } - /* concatinate any remaining to result */ + /* concatenate any remaining to result */ if(ellFirst(&P)) ellConcat(pList, &P); else if(ellFirst(&Q))