[ccan] [PATCH] bitmap: use unsigned int for iterating over bitmap words
David Gibson
david at gibson.dropbear.id.au
Thu Mar 20 22:58:07 EST 2014
On Mon, Mar 10, 2014 at 11:04:50AM -0400, Emilio G. Cota wrote:
> From: "Emilio G. Cota" <cota at braap.org>
>
> 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 at braap.org>
Applied, thanks.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20140320/8a9d3ecb/attachment.sig>
More information about the ccan
mailing list