From d2368501193a51f2dd0644005e08bdcc46d32813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 11 Dec 2025 14:37:09 +0800 Subject: [PATCH] CPUCache (macOS): fixes cache line size detection --- src/detection/cpucache/cpucache_apple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/cpucache/cpucache_apple.c b/src/detection/cpucache/cpucache_apple.c index b0e315a14..cacb85df6 100644 --- a/src/detection/cpucache/cpucache_apple.c +++ b/src/detection/cpucache/cpucache_apple.c @@ -9,7 +9,7 @@ const char* ffDetectCPUCache(FFCPUCacheResult* result) if (nPerfLevels <= 0) return "sysctl(hw.nperflevels) failed"; // macOS provides the global system cache line size - uint32_t lineSize = (uint32_t) ffSysctlGetInt("hw.cachelinesize", 0); + uint32_t lineSize = (uint32_t) ffSysctlGetInt64("hw.cachelinesize", 0); char sysctlKey[128] = "hw.perflevelN."; char* pNum = sysctlKey + strlen("hw.perflevel");