We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaa9e16 commit 24e33abCopy full SHA for 24e33ab
include/libhat/signature.hpp
@@ -23,7 +23,7 @@ LIBHAT_EXPORT namespace hat {
23
constexpr signature_element() noexcept = default;
24
constexpr signature_element(std::nullopt_t) noexcept {}
25
constexpr signature_element(const std::byte value) noexcept : value_{value}, mask_{0xFF} {}
26
- constexpr signature_element(const std::byte value, const std::byte mask) noexcept : value_{value}, mask_{mask} {}
+ constexpr signature_element(const std::byte value, const std::byte mask) noexcept : value_{value & mask}, mask_{mask} {}
27
28
constexpr signature_element& operator=(std::nullopt_t) noexcept {
29
return *this = signature_element{};
0 commit comments