Fixed a couple of signed vs. unsigned comparison warnings.