SunOS: silences compiler warnings

This commit is contained in:
李通洲
2026-01-07 18:36:01 +08:00
parent 1fa9a61b3f
commit 4d185e64ac
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
const char* ffDetectMemory(FFMemoryResult* ram)
{
ram->bytesTotal = sysconf(_SC_PHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
ram->bytesUsed = ram->bytesTotal - sysconf(_SC_AVPHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
ram->bytesTotal = (uint64_t) sysconf(_SC_PHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
ram->bytesUsed = ram->bytesTotal - (uint64_t) sysconf(_SC_AVPHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
return NULL;
}