X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Fqsort.c;h=6bb636f5631d5c50a51f9052c9b947f61507fb49;hp=084cd3ca4cf07675cca839812a5e4526283550da;hb=f93d55176e4db9edfb1840054169003bcca4d1fb;hpb=48ec56a384a70f2d7b1293db192e37f6dfaabe1e 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 ( ;; )