Use unsigned type in fallback popcount()
commita3579a75376fe0050031a4d945b2a4f7f10597f6
authorOlly Betts <olly@survex.com>
Sun, 13 Aug 2023 23:31:57 +0000 (14 11:31 +1200)
committerOlly Betts <olly@survex.com>
Sun, 13 Aug 2023 23:31:57 +0000 (14 11:31 +1200)
tree6793fafb82f4207a3998b175dc041a018da65543
parent1b8e5cdf1fe633848e6f7e178e4a4d91655a2a72
Use unsigned type in fallback popcount()

This avoids undefined behaviour in the corner case where the input
is the minimum value of a signed type.  Currently all callers use
an unsigned type so this was an entirely latent bug noticed while
reading the code.
xapian-core/common/popcount.h