From 486fe7d65b344d68a47852df62292ce4f7eb1981 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 15 Feb 2024 09:55:22 +0100 Subject: [PATCH] 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. --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index eb704c2c6..e6166ee05 100644 --- a/quickjs.c +++ b/quickjs.c @@ -6117,7 +6117,7 @@ void JS_ComputeMemoryUsage(JSRuntime *rt, JSMemoryUsage *s) void JS_DumpMemoryUsage(FILE *fp, const JSMemoryUsage *s, JSRuntime *rt) { fprintf(fp, "QuickJS-ng memory usage -- %s version, %d-bit, malloc limit: %"PRId64"\n\n", - JS_GetVersion(), (int)sizeof(void *) * 8, (int64_t)(ssize_t)s->malloc_limit); + JS_GetVersion(), (int)sizeof(void *) * 8, s->malloc_limit); if (rt) { static const struct { const char *name;