Make sure isize matches ssize_t on most cases
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e2a6cba3c6
commit
7a2cb28475
@ -10,7 +10,7 @@ typedef int16_t i16;
|
||||
typedef int32_t i32;
|
||||
typedef int64_t i64;
|
||||
typedef size_t usize;
|
||||
typedef int64_t isize;
|
||||
typedef intptr_t isize;
|
||||
|
||||
static_assert(sizeof(u8) == 1UL);
|
||||
static_assert(sizeof(u16) == 2UL);
|
||||
@ -21,5 +21,5 @@ static_assert(sizeof(i16) == 2UL);
|
||||
static_assert(sizeof(i32) == 4UL);
|
||||
static_assert(sizeof(i64) == 8UL);
|
||||
|
||||
static_assert(sizeof(usize) == 8UL);
|
||||
static_assert(sizeof(isize) == 8UL);
|
||||
static_assert(sizeof(usize) == sizeof(void*));
|
||||
static_assert(sizeof(isize) == sizeof(void*));
|
Loading…
Reference in New Issue
Block a user