We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60ec8c9 commit d236850Copy full SHA for d236850
src/detection/cpucache/cpucache_apple.c
@@ -9,7 +9,7 @@ const char* ffDetectCPUCache(FFCPUCacheResult* result)
9
if (nPerfLevels <= 0) return "sysctl(hw.nperflevels) failed";
10
11
// macOS provides the global system cache line size
12
- uint32_t lineSize = (uint32_t) ffSysctlGetInt("hw.cachelinesize", 0);
+ uint32_t lineSize = (uint32_t) ffSysctlGetInt64("hw.cachelinesize", 0);
13
14
char sysctlKey[128] = "hw.perflevelN.";
15
char* pNum = sysctlKey + strlen("hw.perflevel");
0 commit comments