Skip to content

Commit

Permalink
use %p, do not bother with sizes at all
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jan 3, 2025
1 parent f19b4f2 commit f7be8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/builtin/builtin.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ fn _memory_panic(fname string, size isize) {
$if freestanding || vinix {
eprint('size') // TODO: use something more informative here
} $else {
C.fprintf(C.stderr, c'%ld', i64(size))
C.fprintf(C.stderr, c'%p', voidptr(size))
}
if size < 0 {
eprint(' < 0')
Expand Down

0 comments on commit f7be8f5

Please sign in to comment.