summaryrefslogtreecommitdiff
path: root/src/cmd_helper.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-12-27 09:56:43 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-12-27 10:30:55 +0000
commit52f3abba6ef2e5a69b58cf71fdcdaa75d603b062 (patch)
tree6820fbe56413636b766fc4d50d88995d0dd34338 /src/cmd_helper.h
parentd8605ad18da2a00fceb72b38325374b341ac6f16 (diff)
downloadopenttd-52f3abba6ef2e5a69b58cf71fdcdaa75d603b062.tar.xz
Cleanup: Remove unnecessary assert_tcompile macro
Diffstat (limited to 'src/cmd_helper.h')
-rw-r--r--src/cmd_helper.h6
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;
}