Skip to content

Commit b5d06a2

Browse files
committed
fix: use ptrdiff_t for isz instead of ssize_t
1 parent 27a78b6 commit b5d06a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/carbon_types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ static_assert(sizeof(flong) >= sizeof(f64), "Expected flong to be at least 8 byt
3131

3232
typedef typeof(sizeof(0)) usz;
3333
static_assert(sizeof(usz) >= 2, "Expected usz to be at least 2 bytes");
34-
typedef ssize_t isz;
34+
typedef ptrdiff_t isz;
35+
typedef intptr_t iptr;
3536
typedef uintptr_t uptr;
3637

3738
#ifdef __cplusplus

0 commit comments

Comments
 (0)