aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-04 09:18:55 -0500
committerJack Lloyd <[email protected]>2018-12-04 09:19:03 -0500
commit22159fd4b31323492fd2e49ca0bf19f2260e0fc5 (patch)
tree50dda8ca328a0ff16ecaac28b52fc2d874be3b96 /src
parent84a88c764dfffe1b635837e5160c5f808debc6fe (diff)
Fix some MSVC warnings in CT::Mask
Diffstat (limited to 'src')
-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));
}
/**