Fix some issues caught by check_stdlib_usage.py

This commit is contained in:
Sam Lantinga committed 2023-06-27 06:19:06 -07:00
1 parent e8d2ccbc1c
commit c065a9b128
15 files changed
+41 -39

No files matched your search

+1 -1
View File
@@ -1066,7 +1066,7 @@ int SDL_GetSystemRAM(void)
if (get_system_info(&info) == B_OK) {
/* To have an accurate amount, we also take in account the inaccessible pages (aka ignored)
which is a bit handier compared to the legacy system's api (i.e. used_pages).*/
SDL_SystemRAM = (int)round((info.max_pages + info.ignored_pages > 0 ? info.ignored_pages : 0) * B_PAGE_SIZE / 1048576.0);
SDL_SystemRAM = (int)SDL_round((info.max_pages + info.ignored_pages > 0 ? info.ignored_pages : 0) * B_PAGE_SIZE / 1048576.0);
}
}
#endif