Skip to content

Commit 8ffedc6

Browse files
committed
flags: Fixed a conversion warning generated when storage_t is a uint8_t
1 parent 2dcbc9b commit 8ffedc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substrate/flags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace substrate
3030
constexpr bitFlags_t(const bitFlags_t &flags) noexcept : value{flags.value} { }
3131
// move ctor omitted as it doesn't really make sense for this type
3232
template<typename... values_t, typename = std::enable_if_t<(std::is_same_v<values_t, enum_t> && ...)>>
33-
constexpr bitFlags_t(const values_t ...flags) noexcept : value{(flagAsBit(flags) | ...)} { }
33+
constexpr bitFlags_t(const values_t ...flags) noexcept : value{storage_t((flagAsBit(flags) | ...))} { }
3434

3535
constexpr bitFlags_t &operator =(const bitFlags_t &flags) noexcept
3636
{

0 commit comments

Comments
 (0)