diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index ae711aae14f..955d087b8ea 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -497,8 +497,7 @@ get_cpu_topology(void) * * Loop over all possible CPUs even though some may be offline. */ - for (unsigned i = 0; i < util_cpu_caps.max_cpus && i < UTIL_MAX_CPUS; - i++) { + for (int16_t i = 0; i < util_cpu_caps.max_cpus && i < UTIL_MAX_CPUS; i++) { uint32_t cpu_bit = 1u << (i % 32); mask[i / 32] = cpu_bit;