From 16621f00c1aa365f404fdee9dc840063b04a5e94 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Mon, 20 Mar 2017 19:25:44 +0100 Subject: [PATCH] Use float literals to silcen Windows warnings --- 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 b9635c064..69e755412 100644 --- a/unit_tests/library/tile.cpp +++ b/unit_tests/library/tile.cpp @@ -334,7 +334,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., 0., 0.1, 0.7, 5.2, 7.1, 7.4}; + 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.1f, 0.7f, 5.2f, 7.1f, 7.4f}; CHECK_EQUAL_RANGE(actual_turn_penalties, expected_turn_penalties); // Verify the expected turn angles