Skip to content

Commit

Permalink
memory: fix C.fprintf output by passing mem argument
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Nov 26, 2023
1 parent b9ea910 commit b9eeee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/memory.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
Expand Down

0 comments on commit b9eeee5

Please sign in to comment.