fix warnings possible loss of data (from #88)

This commit is contained in:
Niels 2015-06-20 14:15:15 +02:00
parent 29e8ca64bd
commit 64c467e940

View file

@ -7965,7 +7965,7 @@ TEST_CASE("README", "[hide]")
json j_vec(c_vector); json j_vec(c_vector);
// [1, 2, 3, 4] // [1, 2, 3, 4]
std::deque<float> c_deque {1.2, 2.3, 3.4, 5.6}; std::deque<float> c_deque {1.2f, 2.3f, 3.4f, 5.6f};
json j_deque(c_deque); json j_deque(c_deque);
// [1.2, 2.3, 3.4, 5.6] // [1.2, 2.3, 3.4, 5.6]
@ -8003,7 +8003,7 @@ TEST_CASE("README", "[hide]")
json j_map(c_map); json j_map(c_map);
// {"one": 1, "two": 2, "three": 3} // {"one": 1, "two": 2, "three": 3}
std::unordered_map<const char*, float> c_umap { {"one", 1.2}, {"two", 2.3}, {"three", 3.4} }; std::unordered_map<const char*, float> c_umap { {"one", 1.2f}, {"two", 2.3f}, {"three", 3.4f} };
json j_umap(c_umap); json j_umap(c_umap);
// {"one": 1.2, "two": 2.3, "three": 3.4} // {"one": 1.2, "two": 2.3, "three": 3.4}