Explicitly cast from std::size_t to int to eliminate warning.