mirror of
https://github.com/janet-lang/janet
synced 2025-02-01 09:49:09 +00:00
Remove ssize_t usage.
This commit is contained in:
parent
cfa39ab3b0
commit
e4bafc621a
@ -99,7 +99,7 @@ static const JanetFFIPrimInfo janet_ffi_type_info[] = {
|
|||||||
struct JanetFFIType {
|
struct JanetFFIType {
|
||||||
JanetFFIStruct *st;
|
JanetFFIStruct *st;
|
||||||
JanetFFIPrimType prim;
|
JanetFFIPrimType prim;
|
||||||
ssize_t array_count;
|
int32_t array_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
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;
|
el_type.array_count = -1;
|
||||||
size_t el_size = type_size(el_type);
|
size_t el_size = type_size(el_type);
|
||||||
JanetArray *array = janet_array(type.array_count);
|
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));
|
janet_array_push(array, janet_ffi_read_one(from, el_type, recur - 1));
|
||||||
from += el_size;
|
from += el_size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user