aux: add QuirkKeyValuePair type

This commit is contained in:
Nigel Tao committed 2024-08-05 00:12:15 +10:00
1 parent 3215f6afac
commit ffb64df0a0
12 files changed
+111 -120

No files matched your search

+2 -2
View File
@@ -499,11 +499,11 @@ fuzz_cpp(const uint8_t* in_ptr, size_t in_len, uint64_t hash) {
const char* json_pointer = json_pointers[hash & 15];
hash = wuffs_base__u64__rotate_right(hash, 4);
std::vector<uint32_t> quirks;
std::vector<wuffs_aux::QuirkKeyValuePair> quirks;
for (uint32_t i = 0; g_quirks[i]; i++) {
uint64_t bit = 1 << (i & 63);
if (hash & bit) {
quirks.push_back(g_quirks[i]);
quirks.push_back({g_quirks[i], 1});
}
}