From ac27aadfedada210d5aaccb5051dc46322b6c60c Mon Sep 17 00:00:00 2001 From: lmp Date: Sun, 26 Nov 2023 11:47:13 +0100 Subject: [PATCH] memory: fix `C.fprintf` output by passing `mem` argument --- c/memory.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/memory.c.v b/c/memory.c.v index a675d54f..a2e3c661 100644 --- a/c/memory.c.v +++ b/c/memory.c.v @@ -30,7 +30,7 @@ fn cb_realloc_func(mem voidptr, size usize) voidptr { fn cb_free_func(mem voidptr) { $if trace_sdl_memory ? { - C.fprintf(C.stderr, c'>> sdl.c.cb_free_func | mem: %p\n') + C.fprintf(C.stderr, c'>> sdl.c.cb_free_func | mem: %p\n', mem) } unsafe { free(mem) } }