From f0b58c6f2463da0b7f509a53d8054d5472504094 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 24 Aug 2015 11:53:30 +0200 Subject: db/UniqueTags, tag/Set, ...: use typedef tag_mask_t --- src/command/DatabaseCommands.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/command/DatabaseCommands.cxx') 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; -- cgit v1.2.3