From 1c440b76eeaf4968debe18973435832200a0a12f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 19 Aug 2022 15:14:24 -0400 Subject: Avoid mixing signed and unsigned integers --- src/bitset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bitset.c') diff --git a/src/bitset.c b/src/bitset.c index 6889925..d180ccd 100644 --- a/src/bitset.c +++ b/src/bitset.c @@ -75,7 +75,7 @@ zix_bitset_count_up_to(const ZixBitset* b, const ZixBitsetTally* t, size_t i) } if (extra) { - const ZixBitset mask = ~(~(ZixBitset)0 << extra); + const ZixBitset mask = ~(~(ZixBitset)0U << extra); count += zix_bitset_popcount(b[full_elems] & mask); } -- cgit v1.2.1