Fixed Android build warnings

This commit is contained in:
Sam Lantinga
2024-08-13 10:52:50 -07:00
parent ce98550cbb
commit efdcfef4b9
2 changed files with 4 additions and 4 deletions

View File

@@ -859,7 +859,7 @@ int SDL_GetCPUCacheLineSize(void)
cacheline_size = c & 0xff;
} else {
#if defined(HAVE_SYSCONF) && defined(_SC_LEVEL1_DCACHE_LINESIZE)
if ((cacheline_size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE)) > 0) {
if ((cacheline_size = (int)sysconf(_SC_LEVEL1_DCACHE_LINESIZE)) > 0) {
return cacheline_size;
} else {
cacheline_size = SDL_CACHELINE_SIZE;