From 9934719f6bb9d382cc1e2e18e296a4b6a5f2aa2b Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 23 Nov 2022 18:05:01 +0100 Subject: [PATCH] Use a more reliable signed 64-bit type than "long" --- luna/Types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luna/Types.h b/luna/Types.h index a872a576..0abcefa7 100644 --- a/luna/Types.h +++ b/luna/Types.h @@ -10,7 +10,7 @@ typedef int16_t i16; typedef int32_t i32; typedef int64_t i64; typedef size_t usize; -typedef long isize; +typedef int64_t isize; static_assert(sizeof(u8) == 1UL); static_assert(sizeof(u16) == 2UL);