From 4f2bb19b0fae930b0036546fc88cfcb5c5d924c1 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Wed, 9 Nov 2016 06:06:55 +0100 Subject: [PATCH] Use single precision values in vector initializer list (#3270) --- unit_tests/library/tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_tests/library/tile.cpp b/unit_tests/library/tile.cpp index 0f1bcbacf..6d6ea8a33 100644 --- a/unit_tests/library/tile.cpp +++ b/unit_tests/library/tile.cpp @@ -330,7 +330,7 @@ BOOST_AUTO_TEST_CASE(test_tile_turns) } std::sort(actual_turn_penalties.begin(), actual_turn_penalties.end()); const std::vector expected_turn_penalties = { - 0, 0, 0, 0, 0, 0, 0.1, 0.1, 0.3, 0.4, 1.3, 1.8, 5.4, 5.5, 5.8, 7.1, 7.2, 7.2}; + 0, 0, 0, 0, 0, 0, .1f, .1f, .3f, .4f, 1.3f, 1.8f, 5.4f, 5.5f, 5.8f, 7.1f, 7.2f, 7.2f}; BOOST_CHECK(actual_turn_penalties == expected_turn_penalties); // Verify the expected turn angles