Skip to content

Commit

Permalink
Fixed 64-bit build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 8, 2017
1 parent 4657d9f commit 1b2492e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_qsort.c
Expand Up @@ -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);
Expand Down

0 comments on commit 1b2492e

Please sign in to comment.