Remove a magic number (#3888)

This commit is contained in:
Niels Lohmann 2022-12-18 17:04:51 +01:00 committed by GitHub
parent 885aa0014e
commit 2ca8dabeb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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