Skip to content

Commit eb308e1

Browse files
committed
Memory (BSD): fix building on 32-bit FreeBSD
fix #538
1 parent 9a4e787 commit eb308e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/memory/memory_bsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const char* ffDetectMemory(FFMemoryResult* ram)
55
{
6-
uint64_t length = sizeof(ram->bytesTotal);
6+
size_t length = sizeof(ram->bytesTotal);
77
if (sysctl((int[]){ CTL_HW, HW_PHYSMEM }, 2, &ram->bytesTotal, &length, NULL, 0))
88
return "Failed to read hw.physmem";
99

0 commit comments

Comments
 (0)