diff --git a/lib/utils/bitarray.c b/lib/utils/bitarray.c index dfd7e6b9453..07f22e0c94b 100644 --- a/lib/utils/bitarray.c +++ b/lib/utils/bitarray.c @@ -620,7 +620,7 @@ found: /* The bit we are looking for must be in the current bundle idx. * Find out the exact index of the bit. */ - for (int j = 0; j <= bundle_bitness(bitarray) - 1; j++) { + for (size_t j = 0; j <= bundle_bitness(bitarray) - 1; j++) { if (bitarray->bundles[idx] & mask & BIT(j)) { if (--n <= 0) { *found_at = idx * bundle_bitness(bitarray) + j;