Make sure isize matches ssize_t on most cases
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-20 17:12:44 +01:00
parent e2a6cba3c6
commit 7a2cb28475
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -10,7 +10,7 @@ typedef int16_t i16;
typedef int32_t i32; typedef int32_t i32;
typedef int64_t i64; typedef int64_t i64;
typedef size_t usize; typedef size_t usize;
typedef int64_t isize; typedef intptr_t isize;
static_assert(sizeof(u8) == 1UL); static_assert(sizeof(u8) == 1UL);
static_assert(sizeof(u16) == 2UL); static_assert(sizeof(u16) == 2UL);
@ -21,5 +21,5 @@ static_assert(sizeof(i16) == 2UL);
static_assert(sizeof(i32) == 4UL); static_assert(sizeof(i32) == 4UL);
static_assert(sizeof(i64) == 8UL); static_assert(sizeof(i64) == 8UL);
static_assert(sizeof(usize) == 8UL); static_assert(sizeof(usize) == sizeof(void*));
static_assert(sizeof(isize) == 8UL); static_assert(sizeof(isize) == sizeof(void*));