Fix comparison between signed and unsigned.