Fix compile time warning about comparison between signed and unsigned values.