diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2024-02-16 10:25:29 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2024-02-16 10:25:29 +0100 |
commit | 3bb2ca360e994c93e9bf273a685c061d5e0b58f4 (patch) | |
tree | 2f09752166afb9d8d3a5ae384cf2f0b3ea3e66b8 /quickjs.c | |
parent | c06af876f6d44488bad3c3e1e5f479edb36f8bf5 (diff) | |
download | quickjs-3bb2ca360e994c93e9bf273a685c061d5e0b58f4.tar.gz quickjs-3bb2ca360e994c93e9bf273a685c061d5e0b58f4.zip |
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 'quickjs.c')
-rw-r--r-- | quickjs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6242,7 +6242,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 { |