Fix unsigned/signed int comparison