From e4bafc621a5aea51a3264e67110dd887786bf189 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 20 Jun 2022 11:09:41 -0500 Subject: [PATCH] Remove ssize_t usage. --- src/core/ffi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ffi.c b/src/core/ffi.c index e7c0b024..60f7e9dc 100644 --- a/src/core/ffi.c +++ b/src/core/ffi.c @@ -99,7 +99,7 @@ static const JanetFFIPrimInfo janet_ffi_type_info[] = { struct JanetFFIType { JanetFFIStruct *st; JanetFFIPrimType prim; - ssize_t array_count; + int32_t array_count; }; typedef struct { @@ -533,7 +533,7 @@ static Janet janet_ffi_read_one(const uint8_t *from, JanetFFIType type, int recu el_type.array_count = -1; size_t el_size = type_size(el_type); JanetArray *array = janet_array(type.array_count); - for (ssize_t i = 0; i < type.array_count; i++) { + for (int32_t i = 0; i < type.array_count; i++) { janet_array_push(array, janet_ffi_read_one(from, el_type, recur - 1)); from += el_size; }