diff -cr ../Python-1.5.orig/Objects/listobject.c ./Objects/listobject.c *** ../Python-1.5.orig/Objects/listobject.c Wed Dec 10 16:14:24 1997 --- Objects/listobject.c Thu Mar 12 19:43:24 1998 *************** *** 719,725 **** r = hi-2; for (;;) { /* Move left index to element > pivot */ ! for (;;) { k = docompare(*l, pivot, compare); if (k == CMPERROR) return -1; --- 719,725 ---- r = hi-2; for (;;) { /* Move left index to element > pivot */ ! while (l < hi) { k = docompare(*l, pivot, compare); if (k == CMPERROR) return -1; *************** *** 728,734 **** l++; } /* Move right index to element < pivot */ ! for (;;) { k = docompare(pivot, *r, compare); if (k == CMPERROR) return -1; --- 728,734 ---- l++; } /* Move right index to element < pivot */ ! while (r >= lo) { k = docompare(pivot, *r, compare); if (k == CMPERROR) return -1;