mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-07-07 14:20:42 +00:00
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:
parent
ee4d8ffed4
commit
8c49d62005
|
@ -1093,8 +1093,8 @@ class MinidumpWriter {
|
||||||
value_len = 0;
|
value_len = 0;
|
||||||
}
|
}
|
||||||
for (size_t i = 0;
|
for (size_t i = 0;
|
||||||
i < sizeof(cpu_features_entries)/
|
i != sizeof(cpu_features_entries) /
|
||||||
sizeof(cpu_features_entries[0]);
|
sizeof(cpu_features_entries[0]);
|
||||||
++i) {
|
++i) {
|
||||||
const CpuFeaturesEntry* entry = &cpu_features_entries[i];
|
const CpuFeaturesEntry* entry = &cpu_features_entries[i];
|
||||||
if (tag_len == strlen(entry->tag) &&
|
if (tag_len == strlen(entry->tag) &&
|
||||||
|
|
Loading…
Reference in a new issue