Fixed some signed/unsigned comparison warnings.