diff --git a/src/detection/cpu/cpu_apple.c b/src/detection/cpu/cpu_apple.c index f078b0c1f..782019255 100644 --- a/src/detection/cpu/cpu_apple.c +++ b/src/detection/cpu/cpu_apple.c @@ -65,7 +65,7 @@ static const char* detectFrequency(FFCPUResult* cpu) { // voltage-states5-sram stores supported pairs of pcores from the lowest to the highest // voltage-states1-sram stores ecores' CFIndex propLength = CFDataGetLength(freqProperty); - if (propLength == 0 || propLength % (CFIndex) sizeof(uint32_t) * 2 != 0) { + if (propLength == 0 || propLength % (CFIndex) (sizeof(uint32_t) * 2) != 0) { return "Invalid \"voltage-states5-sram\" length"; } diff --git a/src/detection/gpu/gpu_apple.c b/src/detection/gpu/gpu_apple.c index 623f081d8..fc9fd457d 100644 --- a/src/detection/gpu/gpu_apple.c +++ b/src/detection/gpu/gpu_apple.c @@ -48,8 +48,6 @@ static double detectGpuTemp(const FFstrbuf* gpuName) { } #ifdef __aarch64__ - #include "common/apple/cf_helpers.h" - #include static const char* detectFrequency(FFGPUResult* gpu) { @@ -71,7 +69,7 @@ static const char* detectFrequency(FFGPUResult* gpu) { // voltage-states9-sram stores supported pairs of gpu from the lowest to the highest CFIndex propLength = CFDataGetLength(freqProperty); - if (propLength == 0 || propLength % (CFIndex) sizeof(uint32_t) * 2 != 0) { + if (propLength == 0 || propLength % (CFIndex) (sizeof(uint32_t) * 2) != 0) { return "Invalid \"voltage-states9-sram\" length"; }