mirror of
https://github.com/nlohmann/json.git
synced 2026-03-06 17:26:24 +00:00
run make amalgamate
This commit is contained in:
@@ -414,7 +414,7 @@ class serializer
|
||||
else
|
||||
{
|
||||
// we finish reading, but do not accept: string was incomplete
|
||||
std::string sn(3,'\0');
|
||||
std::string sn(3, '\0');
|
||||
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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user