commit | ce4842e4186fdcdc0bed8221c216c26780acf2c1 | [log] [tgz] |
---|---|---|
author | Erik Kline <ek@google.com> | Tue May 08 20:48:41 2018 +0900 |
committer | Erik Kline <ek@google.com> | Tue May 08 20:51:10 2018 +0900 |
tree | f060702526f343fb3230a25f64852ef71c19daa6 | |
parent | 0198ef5cd67b74a4e67a485a03c1c12c815aa32b [diff] |
Fix iteration through a slice to account for -Wsign-compare It seems that pi-dev and AOSP compile flags might be different, as no -Wsign-compare failures happened on AOSP. Switching from for (int i = 0; ...) style to for (; !slice.empty(); ...) in several places also provides a better example of how to use Slice. Test: netdutils_test passes Bug: 78250686 Change-Id: Ic41d3e77810e41f7ae8573ea1cadbdf4808fa461