Skip to content

Commit 2c306ce

Browse files
committed
fix(test): Use unsigned literal in count() comparisons to silence -Wtype-limits
1 parent 33a6220 commit 2c306ce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/analysis/music_analyzer_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ TEST_CASE("MusicAnalyzer precompute then lazy access", "[music_analyzer]") {
321321
REQUIRE(analyzer.key_analyzer().key().confidence >= 0.0f);
322322
REQUIRE(analyzer.timbre_analyzer().brightness() >= 0.0f);
323323
REQUIRE(analyzer.dynamics_analyzer().dynamics().dynamic_range_db >= 0.0f);
324-
REQUIRE(analyzer.beat_analyzer().count() >= 0);
325-
REQUIRE(analyzer.chord_analyzer().count() >= 0);
324+
REQUIRE(analyzer.beat_analyzer().count() >= 0u);
325+
REQUIRE(analyzer.chord_analyzer().count() >= 0u);
326326
REQUIRE(!analyzer.rhythm_analyzer().groove_type().empty());
327-
REQUIRE(analyzer.section_analyzer().count() >= 0);
328-
REQUIRE(analyzer.melody_analyzer().count() >= 0);
327+
REQUIRE(analyzer.section_analyzer().count() >= 0u);
328+
REQUIRE(analyzer.melody_analyzer().count() >= 0u);
329329
}

0 commit comments

Comments
 (0)