about summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2024-02-16 10:25:29 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-02 18:12:24 +0100
commit1f7c361d05281d59773d1eaab27a1bad5425bc75 (patch)
treef9057c62297df60741ff511c9270059b974be63e /lib
parent09590962a19e277fdf682a722fe240dd49521310 (diff)
downloadchawan-1f7c361d05281d59773d1eaab27a1bad5425bc75.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/quickjs/quickjs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c
index 7b4e0202..7492198f 100644
--- a/lib/quickjs/quickjs.c
+++ b/lib/quickjs/quickjs.c
@@ -6344,7 +6344,7 @@ void JS_DumpMemoryUsage(FILE *fp, const JSMemoryUsage *s, JSRuntime *rt)
             "BigNum "
 #endif
             CONFIG_VERSION " version, %d-bit, malloc limit: %"PRId64"\n\n",
-            (int)sizeof(void *) * 8, (int64_t)(ssize_t)s->malloc_limit);
+            (int)sizeof(void *) * 8, s->malloc_limit);
 #if 1
     if (rt) {
         static const struct {