Memory (BSD): fix building on 32-bit FreeBSD

fix #538
This commit is contained in:
李通洲
2023-08-25 08:47:02 +08:00
parent 9a4e7874d6
commit eb308e1861
+1 -1
View File
@@ -3,7 +3,7 @@
const char* ffDetectMemory(FFMemoryResult* ram)
{
uint64_t length = sizeof(ram->bytesTotal);
size_t length = sizeof(ram->bytesTotal);
if (sysctl((int[]){ CTL_HW, HW_PHYSMEM }, 2, &ram->bytesTotal, &length, NULL, 0))
return "Failed to read hw.physmem";