From a0f507735dd818c1ab28fab70979ea65c6a1b519 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 15 Feb 2024 11:32:48 +0100 Subject: [PATCH] Remove unnecessary ssize_t posix-ism (#265) 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 eb704c2..e6166ee 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;