Avoid comparing size_t to be < 0 on AArch64.

cpu_features_entries is empty on AArch64 and causes tautological-compare
warning when compiling with Clang.

A=dskiba@google.com
Original Review: https://codereview.chromium.org/1562223002/

BUG=chromium:539781

Review URL: https://codereview.chromium.org/1566893002 .
This commit is contained in:
Lei Zhang 2016-01-06 16:16:01 -08:00
parent ee4d8ffed4
commit 8c49d62005

View file

@ -1093,8 +1093,8 @@ class MinidumpWriter {
value_len = 0;
}
for (size_t i = 0;
i < sizeof(cpu_features_entries)/
sizeof(cpu_features_entries[0]);
i != sizeof(cpu_features_entries) /
sizeof(cpu_features_entries[0]);
++i) {
const CpuFeaturesEntry* entry = &cpu_features_entries[i];
if (tag_len == strlen(entry->tag) &&