diff options
author | Max Kellermann <max@duempel.org> | 2014-01-14 22:40:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-14 22:40:07 +0100 |
commit | a3f9abcbd1d10c14cd8e1fa5abbd76cc12532949 (patch) | |
tree | cea939fcd4cb80298804fc408af7ce1c2c2f6a0c /src/SongFilter.cxx | |
parent | 77041e2cd280975da79149ba48779e208630760f (diff) | |
download | mpd-a3f9abcbd1d10c14cd8e1fa5abbd76cc12532949.tar.gz mpd-a3f9abcbd1d10c14cd8e1fa5abbd76cc12532949.tar.xz mpd-a3f9abcbd1d10c14cd8e1fa5abbd76cc12532949.zip |
SongFilter, TagConfig: cast TAG_NUM_OF_ITEM_TYPES to integer
Fixes clang warning.
Diffstat (limited to 'src/SongFilter.cxx')
-rw-r--r-- | src/SongFilter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |