X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fqsort.c;h=6bb636f5631d5c50a51f9052c9b947f61507fb49;hb=18af9d0a4cd252433e0cbd5daf4640e325c9d0ab;hp=084cd3ca4cf07675cca839812a5e4526283550da;hpb=b42a534f135f12fe47a6bc343bb6cc2c0e973198;p=pdclib.old diff --git a/functions/stdlib/qsort.c b/functions/stdlib/qsort.c index 084cd3c..6bb636f 100644 --- a/functions/stdlib/qsort.c +++ b/functions/stdlib/qsort.c @@ -41,9 +41,9 @@ void qsort( void * base, size_t nmemb, size_t size, int (*compar)( const void *, { char * i; char * j; - size_t thresh = T * size; - char * base_ = (char *)base; - char * limit = base_ + nmemb * size; + _PDCLIB_ptrdiff_t thresh = T * size; + char * base_ = (char *)base; + char * limit = base_ + nmemb * size; PREPARE_STACK; for ( ;; )