🚨 fixed some warnings #1527

This commit is contained in:
Niels Lohmann 2019-03-20 11:06:39 +01:00
parent 51e1564c9e
commit 7c55510f76
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
3 changed files with 6 additions and 6 deletions

View file

@ -1357,7 +1357,7 @@ scan_number_done:
if ('\x00' <= c and c <= '\x1F')
{
// escape control characters
std::array<char, 9> cs{};
std::array<char, 9> cs{{}};
(std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c));
result += cs.data();
}