Commit 1b2492ed8a65ffb96f0fd1d4f544cc3fa963eb1d

Sam Lantinga 2017-09-08T15:08:03

Fixed 64-bit build warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_qsort.c b/src/stdlib/SDL_qsort.c
index cf927c1..6233ea4 100644
--- a/src/stdlib/SDL_qsort.c
+++ b/src/stdlib/SDL_qsort.c
@@ -519,7 +519,7 @@ extern void qsortG(void *base, size_t nmemb, size_t size,
            int (*compare)(const void *, const void *)) {
 
   if (nmemb<=1) return;
-  if (((int)base|size)&(WORD_BYTES-1))
+  if (((size_t)base|size)&(WORD_BYTES-1))
     qsort_nonaligned(base,nmemb,size,compare);
   else if (size!=WORD_BYTES)
     qsort_aligned(base,nmemb,size,compare);