Fixed 64-bit build warning
authorSam Lantinga <slouken@libsdl.org>
Fri, 08 Sep 2017 15:08:03 -0700
changeset 11468a39f1b8ff998
parent 11467 34e8c8090d9e
child 11469 71610a71bbb2
Fixed 64-bit build warning
src/stdlib/SDL_qsort.c
     1.1 --- a/src/stdlib/SDL_qsort.c	Fri Sep 08 04:53:31 2017 -0700
     1.2 +++ b/src/stdlib/SDL_qsort.c	Fri Sep 08 15:08:03 2017 -0700
     1.3 @@ -519,7 +519,7 @@
     1.4             int (*compare)(const void *, const void *)) {
     1.5  
     1.6    if (nmemb<=1) return;
     1.7 -  if (((int)base|size)&(WORD_BYTES-1))
     1.8 +  if (((size_t)base|size)&(WORD_BYTES-1))
     1.9      qsort_nonaligned(base,nmemb,size,compare);
    1.10    else if (size!=WORD_BYTES)
    1.11      qsort_aligned(base,nmemb,size,compare);