]> git.ozlabs.org Git - ccan/commit
bitmap: use unsigned int for iterating over bitmap words
authorEmilio G. Cota <cota@braap.org>
Mon, 10 Mar 2014 15:04:50 +0000 (11:04 -0400)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Mar 2014 11:57:04 +0000 (22:57 +1100)
commit2a8b4826ddf8face89bd37a5fc0982474f96e2e3
tree0d9537b46fbcd8372f345a66097d3a6d942762f3
parent710d42d071a10093077d30d6e521f9599a9bc997
bitmap: use unsigned int for iterating over bitmap words

Bitmap words (e.g. resulting from BITMAP_{N,HEAD}WORDS) are of
unsigned type.

Use "unsigned int" to iterate over bitmap words to avoid comparisons
between signed and unsigned expressions. GCC otherwise warns about
these when -Wsign-compare is enabled.

Signed-off-by: Emilio G. Cota <cota@braap.org>
ccan/bitmap/bitmap.h