diff options
Diffstat (limited to 'src/cmd_helper.h')
-rw-r--r-- | src/cmd_helper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd_helper.h b/src/cmd_helper.h index ee5d445c2..a505c1fd8 100644 --- a/src/cmd_helper.h +++ b/src/cmd_helper.h @@ -24,9 +24,9 @@ template<typename T, uint S, uint N, typename U> static inline T Extract(U v) { /* Check if there are enough bits in v */ - assert_tcompile(N == EnumPropsT<T>::num_bits); - assert_tcompile(S + N <= sizeof(U) * 8); - assert_tcompile(EnumPropsT<T>::end <= (1 << N)); + assert_compile(N == EnumPropsT<T>::num_bits); + assert_compile(S + N <= sizeof(U) * 8); + assert_compile(EnumPropsT<T>::end <= (1 << N)); U masked = GB(v, S, N); return IsInsideMM(masked, EnumPropsT<T>::begin, EnumPropsT<T>::end) ? (T)masked : EnumPropsT<T>::invalid; } |