Fix -Wsign-compare warning in api2/builder.h
PiperOrigin-RevId: 542673286
This commit is contained in:
parent
4e862995ba
commit
a8899da45a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user