1
0
mirror of https://github.com/nlohmann/json.git synced 2025-08-09 05:22:48 +03:00

🏁 adding parentheses around std::snprintf calls #1337

This commit is contained in:
Niels Lohmann
2018-11-09 21:18:02 +01:00
parent f80efd3954
commit da81e7be22
4 changed files with 22 additions and 22 deletions

View File

@@ -1360,7 +1360,7 @@ scan_number_done:
{
// escape control characters
char cs[9];
snprintf(cs, 9, "<U+%.4X>", static_cast<unsigned char>(c));
(std::snprintf)(cs, 9, "<U+%.4X>", static_cast<unsigned char>(c));
result += cs;
}
else