Fixed signed compare warnings.