Commit ecadcdb5 authored by Matthias Möller's avatar Matthias Möller

added char cast

should fix the GCC unittest
parent 48656a49
......@@ -415,7 +415,7 @@ class serializer
{
// we finish reading, but do not accept: string was incomplete
std::string sn(3,'\0');
snprintf(&sn[0], sn.size(), "%.2X", s.back());
snprintf(&sn[0], sn.size(), "%.2X", static_cast<uint8_t>(s.back()));
JSON_THROW(type_error::create(316, "incomplete UTF-8 string; last byte: 0x" + sn));
}
}
......
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