From 3229da48e334015d9f37a92e544cb3c3396e8a30 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Jul 2024 15:33:50 +0200 Subject: [PATCH] tag/Mask: pass 64 bit integer to constructor, prevent truncation Commit f49d4ef4ad0 changed the bit mask size to 64 bit, but I forgot to change the constructor as well. Closes https://github.com/MusicPlayerDaemon/MPD/issues/2057 --- src/tag/Mask.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag/Mask.hxx b/src/tag/Mask.hxx index f7a69f046..b27ad76a4 100644 --- a/src/tag/Mask.hxx +++ b/src/tag/Mask.hxx @@ -16,7 +16,7 @@ class TagMask { mask_t value; - explicit constexpr TagMask(uint_least32_t _value) noexcept + explicit constexpr TagMask(mask_t _value) noexcept :value(_value) {} public: