mirror of
https://github.com/nlohmann/json.git
synced 2026-11-03 19:29:22 +00:00
🏁 adding parentheses around std::snprintf calls #1337
This commit is contained in:
4 files changed
+22
-22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user