From acb29f792f937f41f82be0949457513ec46aed4e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Mar 2020 20:34:02 +0100 Subject: [PATCH] tag/Mask: fix yet another typo, this time in Unset() Similar to commits e8f2f980488318fb0e37c1fe6bc1300e97327b6e and ff1ff1e54a25ed80abdca9e7e63b36db150ec766 Closes https://github.com/MusicPlayerDaemon/MPD/issues/783 --- NEWS | 2 ++ src/tag/Mask.hxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index c8742f395..7f9d25bc3 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.21.21 (not yet released) +* configuration + - fix bug in "metadata_to_use" setting * archive - iso9660: skip empty file names to work around libcdio bug * decoder diff --git a/src/tag/Mask.hxx b/src/tag/Mask.hxx index 4b6126bc5..e7de5dd54 100644 --- a/src/tag/Mask.hxx +++ b/src/tag/Mask.hxx @@ -89,7 +89,7 @@ public: } void Unset(TagType tag) { - *this |= ~TagMask(tag); + *this &= ~TagMask(tag); } };