Fix comparison between signed and unsigned integer warnings

I'm sure there's a reason why he initializes it to zero.