Fix some compiler warnings

This commit is contained in:
Chris Cannam
2022-06-15 11:58:46 +01:00
parent f3dfada888
commit 8b25206e7f
2 changed files with 3 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ static constexpr auto _ = BinClassifier::Classification::Residual;
vector<string> classes_to_strings(const vector<BinClassifier::Classification> &v)
{
vector<std::string> sv(v.size(), "*");
for (auto i = 0; i < v.size(); ++i) {
for (auto i = 0; i < int(v.size()); ++i) {
switch (v[i]) {
case H: sv[i] = "H"; break;
case X: sv[i] = "X"; break;