Fix -Wsign-compare warning in api2/builder.h

PiperOrigin-RevId: 542673286
This commit is contained in:
MediaPipe Team 2023-06-22 14:47:11 -07:00 committed by Copybara-Service
parent 4e862995ba
commit a8899da45a

View File

@ -32,7 +32,7 @@ template <class T>
struct dependent_false : std::false_type {}; struct dependent_false : std::false_type {};
template <typename T> template <typename T>
T& GetWithAutoGrow(std::vector<std::unique_ptr<T>>* vecp, int index) { T& GetWithAutoGrow(std::vector<std::unique_ptr<T>>* vecp, size_t index) {
auto& vec = *vecp; auto& vec = *vecp;
if (vec.size() <= index) { if (vec.size() <= index) {
vec.resize(index + 1); vec.resize(index + 1);