GCC warns about a comparison between signed and unsigned values.