summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-14 22:40:07 +0100
committerMax Kellermann <max@duempel.org>2014-01-15 11:23:41 +0100
commita1b798e555a47a63470edb69d0b3786aae003776 (patch)
treeb5286a92fb50ba7dd4c54c44ecd7b47cc1434239 /src
parentc91e08fbfd257313fa7950cdb0c81657b9e1b173 (diff)
SongFilter, TagConfig: cast TAG_NUM_OF_ITEM_TYPES to integer
Fixes clang warning.
Diffstat (limited to 'src')
-rw-r--r--src/SongFilter.cxx2
-rw-r--r--src/tag/TagConfig.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx
index 8d90c5fc8..49c966b6f 100644
--- a/src/SongFilter.cxx
+++ b/src/SongFilter.cxx
@@ -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;
diff --git a/src/tag/TagConfig.cxx b/src/tag/TagConfig.cxx
index 96fd1847f..b8be4fc4c 100644
--- a/src/tag/TagConfig.cxx
+++ b/src/tag/TagConfig.cxx
@@ -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;