From 6ac67bc634043f668c0085f50a7f2d548b7cfee4 Mon Sep 17 00:00:00 2001 From: Shubo Yang Date: Thu, 22 Oct 2015 15:58:48 +0800 Subject: [PATCH] kill two warnings --- src/json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 56d6f3f09f..f67bbb183b 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -4678,7 +4678,7 @@ class basic_json if (c >= 0x00 and c <= 0x1f) { // print character c as \uxxxx - sprintf(&result[pos + 1], "u%04x", int(c)); + sprintf_s(&result[pos + 1],result.size(),"u%04x", int(c)); pos += 6; // overwrite trailing null character result[pos] = '\\'; @@ -4910,7 +4910,7 @@ class basic_json static constexpr difference_type end_value = begin_value + 1; /// iterator as signed integer type - difference_type m_it = std::numeric_limits::min(); + difference_type m_it = std::numeric_limits::denorm_min(); }; /*!