diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index 8c80c55a7..0cf2b1b2f 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -102,7 +102,7 @@ bool SongFilter::Item::Match(const Tag &_tag) const { bool visited_types[TAG_NUM_OF_ITEM_TYPES]; - std::fill_n(visited_types, TAG_NUM_OF_ITEM_TYPES, false); + std::fill_n(visited_types, size_t(TAG_NUM_OF_ITEM_TYPES), false); for (unsigned i = 0; i < _tag.num_items; i++) { visited_types[_tag.items[i]->type] = true; diff --git a/src/tag/TagConfig.cxx b/src/tag/TagConfig.cxx index 113a94686..cfdd2e1eb 100644 --- a/src/tag/TagConfig.cxx +++ b/src/tag/TagConfig.cxx @@ -40,7 +40,7 @@ TagLoadConfig() if (value == nullptr) return; - std::fill_n(ignore_tag_items, TAG_NUM_OF_ITEM_TYPES, true); + std::fill_n(ignore_tag_items, size_t(TAG_NUM_OF_ITEM_TYPES), true); if (StringEqualsCaseASCII(value, "none")) return;