db/UniqueTags, tag/Set, ...: use typedef tag_mask_t

This commit is contained in:
Max Kellermann
2015-08-24 11:53:30 +02:00
parent f3661b19c0
commit f0b58c6f24
14 changed files with 30 additions and 32 deletions

View File

@@ -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;