Skip to content

Commit 965ac7f

Browse files
committed
Fixed warning: implicit conversion loses integer precision: 'long' to 'int'
1 parent 9024231 commit 965ac7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpuinfo/SDL_cpuinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,9 +1234,9 @@ int SDL_GetSystemPageSize(void)
12341234
#if defined(HAVE_SYSCONF) && (defined(_SC_PAGESIZE) || defined(_SC_PAGE_SIZE))
12351235
if (SDL_SystemPageSize <= 0) {
12361236
#if defined(_SC_PAGE_SIZE)
1237-
SDL_SystemPageSize = sysconf(_SC_PAGE_SIZE);
1237+
SDL_SystemPageSize = (int)sysconf(_SC_PAGE_SIZE);
12381238
#else
1239-
SDL_SystemPageSize = sysconf(_SC_PAGESIZE);
1239+
SDL_SystemPageSize = (int)sysconf(_SC_PAGESIZE);
12401240
#endif
12411241
}
12421242
#endif

0 commit comments

Comments
 (0)