Fixed signed-to-unsigned comparison warnings.

It's a couple of minor fixes, so I didn't create an issue for this...
sorry.