From 345a106d73762d9954ddad8105e0db3301ad0402 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 22 Feb 2017 16:56:56 +0100 Subject: [PATCH] :lipstick: cleanup --- README.md | 2 +- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dee3fb7e..4d897a4c 100644 --- a/README.md +++ b/README.md @@ -857,7 +857,7 @@ $ make json_unit -Ctest $ ./test/json_unit "*"" =============================================================================== -All tests passed (11202588 assertions in 47 test cases) +All tests passed (11202596 assertions in 47 test cases) ``` Alternatively, you can use [CMake](https://cmake.org) and run diff --git a/src/json.hpp b/src/json.hpp index ae01cd3a..6fcfc3e1 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -8315,7 +8315,7 @@ class basic_json // negative value indicates an error assert(written_bytes > 0); // check if buffer was large enough - assert(written_bytes < m_buf.size()); + assert(static_cast(written_bytes) < m_buf.size()); // read information from locale const auto loc = localeconv(); diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 87a50c70..a33da4b3 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -8315,7 +8315,7 @@ class basic_json // negative value indicates an error assert(written_bytes > 0); // check if buffer was large enough - assert(written_bytes < m_buf.size()); + assert(static_cast(written_bytes) < m_buf.size()); // read information from locale const auto loc = localeconv();