commit | d5fe17eac91c5c0cefb2ab8093f41ddc68c2f724 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Tue Oct 01 16:18:47 2019 -0700 |
committer | Yi Kong <yikong@google.com> | Tue Oct 01 16:18:47 2019 -0700 |
tree | f3299a8fe9ff637545d8e97461d84f6294baa5b2 | |
parent | bd5690db112e7357bfa7634abbda9762e20959d7 [diff] |
Fix incorrect narrowing type cast std::string::npos is greater than the maximum value of uint32_t type, the narrowing cast will make this statement always false. Found by Clang tautological-constant-out-of-range-compare warning. Test: N/A Bug: 72331526 Change-Id: I59b297360ab5672868f2cffc42ec02189275a152