Fixed a typo in commit e4bd7a9.
Silenced several signed-unsigned integer comparison warnings.