Fix unsigned/signed comparison.