Changed int to size_t