Fixed a couple of signed-unsigned comparisons.