Got rid of warnings about comparisons between signed/unsigned ints.