Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid warnings on Windows (#12701)
On Wndows, `size_t` is 64-bits, and `int` is 32-bits. That makes conversions from `size_t` to `int` potentially lossy, and they generate warnings. In this case an `int` variable was assigned to `size_t` and then passed to functions consuming `int`. Seems simpler to use `auto` and avoid these problems altogether. Closes #12701 COPYBARA_INTEGRATE_REVIEW=#12701 from coryan:fix-warnings-repeated-field-warnings-in-msvc b1ec34d PiperOrigin-RevId: 530134611
- Loading branch information