From 017fa39adce6010436887a39cb8868eefd87a37a Mon Sep 17 00:00:00 2001 From: DankParrot Date: Wed, 12 Aug 2020 18:00:24 -0700 Subject: [PATCH] Fix ChunkPos cast warning --- src/Types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Types.h b/src/Types.h index ba5112e..28e2bcd 100644 --- a/src/Types.h +++ b/src/Types.h @@ -63,7 +63,7 @@ namespace Feather ChunkPos(BlockPos pos) : x(pos.x >> 4), z(pos.z >> 4) {} // Decode from packed int64 - ChunkPos(int64_t packed) : x(packed), z(packed >> 32) {} + ChunkPos(int64_t packed) : x((int32_t)packed), z(packed >> 32) {} // Pack into one int64 inline int64_t Encode()