rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 9979f992ca1e365d0958b6f1ae1964a1739e26c6
parent ba3c61efaa3797ef97e8e41da71a8f9802e33aa8
Author: vaplv <vaplv@free.fr>
Date:   Sun, 30 Jan 2022 18:15:04 +0100

Fix a GCC warning whith -Wlong-long warning

Diffstat:
Msrc/morton.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/morton.h b/src/morton.h @@ -94,7 +94,7 @@ morton_xyz_encode_u21(const uint32_t xyz[3]) static INLINE void morton_xyz_decode_u21(const uint64_t code, uint32_t xyz[3]) { - ASSERT(xyz && code < ((1ull << 63)-1)); + ASSERT(xyz && code < (((uint64_t)1 << 63)-1)); xyz[0] = (uint32_t)morton3D_decode_u21(code >> 2); xyz[1] = (uint32_t)morton3D_decode_u21(code >> 1); xyz[2] = (uint32_t)morton3D_decode_u21(code >> 0);