1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

Merge pull request #1969 from dota17/dota17-warning

fix warnings in serializer.hpp for VS2019
This commit is contained in:
Niels Lohmann
2020-04-17 10:10:38 +02:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

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