Fix signed-ness warning on macOS.
authorCarl Hetherington <cth@carlh.net>
Mon, 27 Feb 2023 09:08:42 +0000 (10:08 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 27 Feb 2023 09:08:58 +0000 (10:08 +0100)
test/cpl_metadata_test.cc

index 632b12a0e216e8fd74f78fdafab604259ba3560d..827201a29d7d894a4ec35facc67f79457cd0159b 100644 (file)
@@ -477,7 +477,7 @@ check_audio_channel_label_sub_descriptors(int channels)
        BOOST_REQUIRE(mca_sub_descriptors);
        auto channel_label_sub_descriptors = mca_sub_descriptors->node_children("AudioChannelLabelSubDescriptor");
 
-       BOOST_CHECK_EQUAL(channel_label_sub_descriptors.size(), channels);
+       BOOST_CHECK_EQUAL(channel_label_sub_descriptors.size(), static_cast<size_t>(channels));
        int index = 1;
        for (auto sub: channel_label_sub_descriptors) {
                BOOST_CHECK_EQUAL(sub->number_child<int>("MCAChannelID"), index);