Merge pull request #2053 from nlohmann/gcc10warnings

Fix GCC compiler warnings
This commit is contained in:
Niels Lohmann 2020-04-20 08:05:42 +02:00 committed by GitHub
commit 3607687a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 13 deletions

View file

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