summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-04 10:58:47 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-04 10:58:47 +0100
commit615762376308039521e8030797d496ad8d09206e (patch)
treeabe9456e0e75bcc9cf61d06742191a9d339474ad /test
parent2cccb35bbd513737a8f87566e981fa39fea87d04 (diff)
Try to fix some warnings on OS X.
Diffstat (limited to 'test')
-rw-r--r--test/ffmpeg_decoder_sequential_test.cc2
-rw-r--r--test/player_test.cc10
2 files changed, 6 insertions, 6 deletions
diff --git a/test/ffmpeg_decoder_sequential_test.cc b/test/ffmpeg_decoder_sequential_test.cc
index b4f37dd0b..98c7bf9e2 100644
--- a/test/ffmpeg_decoder_sequential_test.cc
+++ b/test/ffmpeg_decoder_sequential_test.cc
@@ -61,7 +61,7 @@ test (boost::filesystem::path file, float fps, int gaps)
for (Frame i = 0; i < N; ++i) {
list<ContentVideo> v;
v = decoder->get_video (i, true);
- BOOST_CHECK_EQUAL (v.size(), 1);
+ BOOST_CHECK_EQUAL (v.size(), 1U);
BOOST_CHECK_EQUAL (v.front().frame, i);
}
#ifdef DCPOMATIC_DEBUG
diff --git a/test/player_test.cc b/test/player_test.cc
index b6f864f82..aadde3636 100644
--- a/test/player_test.cc
+++ b/test/player_test.cc
@@ -58,23 +58,23 @@ BOOST_AUTO_TEST_CASE (player_overlaps_test)
shared_ptr<Player> player = film->make_player ();
list<shared_ptr<Piece> > o = player->overlaps<FFmpegContent> (DCPTime::from_seconds (0), DCPTime::from_seconds (5));
- BOOST_CHECK_EQUAL (o.size(), 1);
+ BOOST_CHECK_EQUAL (o.size(), 1U);
BOOST_CHECK_EQUAL (o.front()->content, A);
o = player->overlaps<FFmpegContent> (DCPTime::from_seconds (5), DCPTime::from_seconds (8));
- BOOST_CHECK_EQUAL (o.size(), 0);
+ BOOST_CHECK_EQUAL (o.size(), 0U);
o = player->overlaps<FFmpegContent> (DCPTime::from_seconds (8), DCPTime::from_seconds (12));
- BOOST_CHECK_EQUAL (o.size(), 1);
+ BOOST_CHECK_EQUAL (o.size(), 1U);
BOOST_CHECK_EQUAL (o.front()->content, B);
o = player->overlaps<FFmpegContent> (DCPTime::from_seconds (2), DCPTime::from_seconds (12));
- BOOST_CHECK_EQUAL (o.size(), 2);
+ BOOST_CHECK_EQUAL (o.size(), 2U);
BOOST_CHECK_EQUAL (o.front()->content, A);
BOOST_CHECK_EQUAL (o.back()->content, B);
o = player->overlaps<FFmpegContent> (DCPTime::from_seconds (8), DCPTime::from_seconds (11));
- BOOST_CHECK_EQUAL (o.size(), 1);
+ BOOST_CHECK_EQUAL (o.size(), 1U);
BOOST_CHECK_EQUAL (o.front()->content, B);
}