Fix integer overflow in test.
authorCarl Hetherington <cth@carlh.net>
Thu, 1 Oct 2020 16:55:40 +0000 (18:55 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 12 Oct 2020 15:34:01 +0000 (17:34 +0200)
test/time_calculation_test.cc

index 636f452d90fc45abfe05db0775b7fbf0b8b08df3..ed4440b33c6f244979cdfc4ffedbdc97a0ae3a80 100644 (file)
@@ -808,5 +808,5 @@ BOOST_AUTO_TEST_CASE (player_time_calculation_test3)
        player->setup_pieces ();
        BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
        piece = player->_pieces.front ();
-       BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 54143L * 48000);
+       BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 54143LL * 48000);
 }