Fix build bustage on gcc 4.6 due to signed/unsigned comparison warnings.

I guess gcc 4.6 isn't smart enough to elide this warning for constants?