From 965ac7f4063e6f227577e157de7dcf6463dc1270 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 27 Oct 2025 17:49:49 -0700 Subject: [PATCH] Fixed warning: implicit conversion loses integer precision: 'long' to 'int' --- src/cpuinfo/SDL_cpuinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c index b45326fd2f..bdfb5a3b06 100644 --- a/src/cpuinfo/SDL_cpuinfo.c +++ b/src/cpuinfo/SDL_cpuinfo.c @@ -1234,9 +1234,9 @@ int SDL_GetSystemPageSize(void) #if defined(HAVE_SYSCONF) && (defined(_SC_PAGESIZE) || defined(_SC_PAGE_SIZE)) if (SDL_SystemPageSize <= 0) { #if defined(_SC_PAGE_SIZE) - SDL_SystemPageSize = sysconf(_SC_PAGE_SIZE); + SDL_SystemPageSize = (int)sysconf(_SC_PAGE_SIZE); #else - SDL_SystemPageSize = sysconf(_SC_PAGESIZE); + SDL_SystemPageSize = (int)sysconf(_SC_PAGESIZE); #endif } #endif