Suppress the compiler warning due to the comparison between signed and unsigned.