diff options
author | Max Kellermann <max@duempel.org> | 2015-08-24 11:53:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-24 11:53:30 +0200 |
commit | f0b58c6f2463da0b7f509a53d8054d5472504094 (patch) | |
tree | fb07d2c89c3ca6d32212a368f8eb9dea02861d88 /src/command/DatabaseCommands.cxx | |
parent | f3661b19c08ecfce952ab6db25cf27f346cb3b7f (diff) | |
download | mpd-f0b58c6f2463da0b7f509a53d8054d5472504094.tar.gz mpd-f0b58c6f2463da0b7f509a53d8054d5472504094.tar.xz mpd-f0b58c6f2463da0b7f509a53d8054d5472504094.zip |
db/UniqueTags, tag/Set, ...: use typedef tag_mask_t
Diffstat (limited to 'src/command/DatabaseCommands.cxx')
-rw-r--r-- | src/command/DatabaseCommands.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command/DatabaseCommands.cxx b/src/command/DatabaseCommands.cxx index dce086162..4fbae95ec 100644 --- a/src/command/DatabaseCommands.cxx +++ b/src/command/DatabaseCommands.cxx @@ -217,7 +217,7 @@ handle_list(Client &client, Request args, Response &r) } SongFilter *filter = nullptr; - uint32_t group_mask = 0; + tag_mask_t group_mask = 0; if (args.size == 1) { /* for compatibility with < 0.12.0 */ @@ -241,7 +241,7 @@ handle_list(Client &client, Request args, Response &r) return CommandResult::ERROR; } - group_mask |= 1u << unsigned(gt); + group_mask |= tag_mask_t(1) << unsigned(gt); args.pop_back(); args.pop_back(); @@ -257,7 +257,7 @@ handle_list(Client &client, Request args, Response &r) } if (tagType < TAG_NUM_OF_ITEM_TYPES && - group_mask & (1u << tagType)) { + group_mask & (tag_mask_t(1) << tagType)) { delete filter; r.Error(ACK_ERROR_ARG, "Conflicting group"); return CommandResult::ERROR; |