From 64c467e9406665859a47ecb946352820865e7bd1 Mon Sep 17 00:00:00 2001 From: Niels Date: Sat, 20 Jun 2015 14:15:15 +0200 Subject: [PATCH] fix warnings possible loss of data (from #88) --- test/unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit.cpp b/test/unit.cpp index cedcb9ba..584da86c 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -7965,7 +7965,7 @@ TEST_CASE("README", "[hide]") json j_vec(c_vector); // [1, 2, 3, 4] - std::deque c_deque {1.2, 2.3, 3.4, 5.6}; + std::deque c_deque {1.2f, 2.3f, 3.4f, 5.6f}; json j_deque(c_deque); // [1.2, 2.3, 3.4, 5.6] @@ -8003,7 +8003,7 @@ TEST_CASE("README", "[hide]") json j_map(c_map); // {"one": 1, "two": 2, "three": 3} - std::unordered_map c_umap { {"one", 1.2}, {"two", 2.3}, {"three", 3.4} }; + std::unordered_map c_umap { {"one", 1.2f}, {"two", 2.3f}, {"three", 3.4f} }; json j_umap(c_umap); // {"one": 1.2, "two": 2.3, "three": 3.4}