Skip to content

Commit a0f5077

Browse files
authored
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.
1 parent fb03ca2 commit a0f5077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6117,7 +6117,7 @@ void JS_ComputeMemoryUsage(JSRuntime *rt, JSMemoryUsage *s)
61176117
void JS_DumpMemoryUsage(FILE *fp, const JSMemoryUsage *s, JSRuntime *rt)
61186118
{
61196119
fprintf(fp, "QuickJS-ng memory usage -- %s version, %d-bit, malloc limit: %"PRId64"\n\n",
6120-
JS_GetVersion(), (int)sizeof(void *) * 8, (int64_t)(ssize_t)s->malloc_limit);
6120+
JS_GetVersion(), (int)sizeof(void *) * 8, s->malloc_limit);
61216121
if (rt) {
61226122
static const struct {
61236123
const char *name;

0 commit comments

Comments
 (0)