From be2065dce9160f5d5b226abd056c76c2ffb5708e Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 14 Aug 2018 22:11:47 +0200 Subject: [PATCH] :rotating_light: fixing a MinGW warning #1192 --- include/nlohmann/detail/input/lexer.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 9b7c8de15..09afa60ba 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -1173,7 +1173,7 @@ scan_number_done: { // escape control characters char cs[9]; - snprintf(cs, 9, "", static_cast(c)); + snprintf(cs, 9, "", static_cast(c)); result += cs; } else diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 0f6b8c223..d640e8918 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -3370,7 +3370,7 @@ scan_number_done: { // escape control characters char cs[9]; - snprintf(cs, 9, "", static_cast(c)); + snprintf(cs, 9, "", static_cast(c)); result += cs; } else