🚑 fix warning

This commit is contained in:
Niels Lohmann committed 2024-11-08 22:48:11 +01:00
1 parent 88318f9a77
commit 83dc915ac2
4 files changed
+47 -5

No files matched your search

@@ -926,7 +926,7 @@ class serializer
? (byte & 0x3fu) | (codep << 6u)
: (0xFFu >> type) & (byte);
const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
const std::size_t index = 256u + (static_cast<size_t>(state) * 16u) + static_cast<size_t>(type);
JSON_ASSERT(index < utf8d.size());
state = utf8d[index];
return state;