diff --git a/src/FixedPoints/Details.h b/src/FixedPoints/Details.h index a2a81fe..26e03b0 100644 --- a/src/FixedPoints/Details.h +++ b/src/FixedPoints/Details.h @@ -126,7 +126,7 @@ namespace FIXED_POINTS_DETAILS struct IdentityMask { IdentityMask() = delete; - static constexpr LeastUInt Value = 1 | (IdentityMask::Value << 1); + static constexpr LeastUInt Value = 1 | (static_cast>(IdentityMask::Value) << 1); }; template<>