diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 11:37:38 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 11:37:38 +0100 |
commit | 7e8875bac57fdf2bf5e773a890ad868b5ff22727 (patch) | |
tree | d6ae28ccef35a7ee55d3c6cc1d4f75eba8cad27e | |
parent | e16c243d1cab4eb236fbd08d12dbce75aac94ddf (diff) |
fix build
-rw-r--r-- | serialize/world-impl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/world-impl.hpp b/serialize/world-impl.hpp index ce4d9a8c..07b80514 100644 --- a/serialize/world-impl.hpp +++ b/serialize/world-impl.hpp @@ -76,7 +76,7 @@ constexpr T lowbits = N == sizeof(T)*8 ? (T)-1 : T((T{1} << N)-T{1}); constexpr inline uint8_t meta_short_scenery_bit = highbits<uint8_t, 1, 0>; constexpr inline uint8_t meta_rotation_bits = highbits<uint8_t, rotation_BITS, 1>; constexpr inline uint8_t scenery_id_flag_mask = meta_short_scenery_bit | meta_rotation_bits; -constexpr inline uint8_t scenery_id_max = int_max<uint8_t> & ~scenery_id_flag_mask; +constexpr inline uint8_t scenery_id_max = int_traits<uint8_t>::max & ~scenery_id_flag_mask; } // namespace |