Merge pull request #2053 from nlohmann/gcc10warnings
Fix GCC compiler warnings
This commit is contained in:
commit
3607687a14
4 changed files with 11 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue