aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/utils/ct_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/ct_utils.h b/src/lib/utils/ct_utils.h
index 9243d6701..63583460f 100644
--- a/src/lib/utils/ct_utils.h
+++ b/src/lib/utils/ct_utils.h
@@ -95,7 +95,7 @@ class Mask
* Derive a Mask from a Mask of a larger type
*/
template<typename U>
- Mask(Mask<U> o) : m_mask(o.value())
+ Mask(Mask<U> o) : m_mask(static_cast<T>(o.value()))
{
static_assert(sizeof(U) > sizeof(T), "sizes ok");
}
@@ -105,7 +105,7 @@ class Mask
*/
static Mask<T> set()
{
- return Mask<T>(~0);
+ return Mask<T>(static_cast<T>(~0));
}
/**