summaryrefslogtreecommitdiff
path: root/stdlib/msort.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/msort.c')
-rw-r--r--stdlib/msort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/msort.c b/stdlib/msort.c
index 880c5d1e3d..45d6a99b83 100644
--- a/stdlib/msort.c
+++ b/stdlib/msort.c
@@ -130,7 +130,7 @@ qsort (void *b, size_t n, size_t s, __compar_fn_t cmp)
measured in bytes. */
/* If the memory requirements are too high don't allocate memory. */
- if (size / pagesize > phys_pages)
+ if (size / pagesize > (size_t) phys_pages)
_quicksort (b, n, s, cmp);
else
{