Skip to content

Commit

Permalink
flags: Fixed a conversion warning generated when storage_t is a uint8_t
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Jan 25, 2025
1 parent 2dcbc9b commit 8ffedc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/flags
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace substrate
constexpr bitFlags_t(const bitFlags_t &flags) noexcept : value{flags.value} { }
// move ctor omitted as it doesn't really make sense for this type
template<typename... values_t, typename = std::enable_if_t<(std::is_same_v<values_t, enum_t> && ...)>>
constexpr bitFlags_t(const values_t ...flags) noexcept : value{(flagAsBit(flags) | ...)} { }
constexpr bitFlags_t(const values_t ...flags) noexcept : value{storage_t((flagAsBit(flags) | ...))} { }

constexpr bitFlags_t &operator =(const bitFlags_t &flags) noexcept
{
Expand Down

0 comments on commit 8ffedc6

Please sign in to comment.