Commit a3f9abcb authored by Max Kellermann's avatar Max Kellermann

SongFilter, TagConfig: cast TAG_NUM_OF_ITEM_TYPES to integer

Fixes clang warning.
parent 77041e2c
...@@ -102,7 +102,7 @@ bool ...@@ -102,7 +102,7 @@ bool
SongFilter::Item::Match(const Tag &_tag) const SongFilter::Item::Match(const Tag &_tag) const
{ {
bool visited_types[TAG_NUM_OF_ITEM_TYPES]; 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++) { for (unsigned i = 0; i < _tag.num_items; i++) {
visited_types[_tag.items[i]->type] = true; visited_types[_tag.items[i]->type] = true;
......
...@@ -40,7 +40,7 @@ TagLoadConfig() ...@@ -40,7 +40,7 @@ TagLoadConfig()
if (value == nullptr) if (value == nullptr)
return; 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")) if (StringEqualsCaseASCII(value, "none"))
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment