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.
This commit is contained in:
Ben Noordhuis 2024-02-15 11:32:48 +01:00 committed by GitHub
parent fb03ca24d2
commit a0f507735d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6117,7 +6117,7 @@ void JS_ComputeMemoryUsage(JSRuntime *rt, JSMemoryUsage *s)
void JS_DumpMemoryUsage(FILE *fp, const JSMemoryUsage *s, JSRuntime *rt) 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", 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) { if (rt) {
static const struct { static const struct {
const char *name; const char *name;