6 ints changed to size_t

to remove signed/unsigned comparison warnings.