mirror of
https://github.com/bellard/quickjs.git
synced 2024-12-12 09:44:33 +08:00
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.
This commit is contained in:
parent
c06af876f6
commit
3bb2ca360e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user