Couldn't `i` be made to be of type `size_t` here?