Skip to content

Commit 3bb2ca3

Browse files
committed
Remove unnecessary ssize_t posix-ism
ssize_t is not always available and the cast it was used in wasn't necessary in the first place, the value already has the right type. Note that the field malloc_limit is an int64_t in JSMemoryUsage whereas it is a size_t in JSMallocState.
1 parent c06af87 commit 3bb2ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6242,7 +6242,7 @@ void JS_DumpMemoryUsage(FILE *fp, const JSMemoryUsage *s, JSRuntime *rt)
62426242
"BigNum "
62436243
#endif
62446244
CONFIG_VERSION " version, %d-bit, malloc limit: %"PRId64"\n\n",
6245-
(int)sizeof(void *) * 8, (int64_t)(ssize_t)s->malloc_limit);
6245+
(int)sizeof(void *) * 8, s->malloc_limit);
62466246
#if 1
62476247
if (rt) {
62486248
static const struct {

0 commit comments

Comments
 (0)