commit e053297ac9f910a620a4c1e6bc9a5169e08d8d41
parent 556fcf7ecf1df74c2f1bceb11b5d5e4222088bdd
Author: Ben Noordhuis <info@bnoordhuis.nl>
Date: Fri, 16 Feb 2024 10:25:29 +0100
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
@@ -6246,7 +6246,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 {