Unverified Commit 3bc9e053 authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #1969 from dota17/dota17-warning

fix warnings in serializer.hpp for VS2019
parents 69ac3360 59cb4c93
......@@ -861,7 +861,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;
}
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment