projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Intermediate work, checked in for safekeeping as I pick up working on this again.
[fw/pdclib]
/
functions
/
stdlib
/
qsort.c
diff --git
a/functions/stdlib/qsort.c
b/functions/stdlib/qsort.c
index 084cd3ca4cf07675cca839812a5e4526283550da..6bb636f5631d5c50a51f9052c9b947f61507fb49 100644
(file)
--- 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;
{
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 ( ;; )
PREPARE_STACK;
for ( ;; )