We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c65488 commit f0d45a4Copy full SHA for f0d45a4
Release/src/utilities/asyncrt_utils.cpp
@@ -502,7 +502,7 @@ inline size_t count_utf16_to_utf8(const utf16string& w)
502
throw std::range_error("UTF-16 string is missing low surrogate");
503
}
504
505
- const auto lowSurrogate = srcData[index];
+ const auto lowSurrogate = static_cast<int>(srcData[index]);
506
if (lowSurrogate < L_SURROGATE_START || lowSurrogate > L_SURROGATE_END)
507
{
508
throw std::range_error("UTF-16 string has invalid low surrogate");
0 commit comments