SongFilter, TagConfig: cast TAG_NUM_OF_ITEM_TYPES to integer
Fixes clang warning.
This commit is contained in:
parent
c91e08fbfd
commit
a1b798e555
|
@ -101,7 +101,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;
|
||||
|
|
|
@ -39,7 +39,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;
|
||||
|
|
Loading…
Reference in New Issue