Fix unsigned/signed comparison warnings

I was getting a few warnings, this should fix them.