aboutsummaryrefslogtreecommitdiff
path: root/core/fmt
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-07 15:27:43 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-07 15:27:43 -0400
commit61c481bd8187925f3ceaf2269d8a479a91e8b763 (patch)
tree286ef186b63f2e4f6dbb6f5ae4a16586ba5dc885 /core/fmt
parent96c06185dd7433402cc9b9acd60880d831c5f71f (diff)
Fix `%p` pointers not printing leading `0x`
Diffstat (limited to 'core/fmt')
-rw-r--r--core/fmt/fmt.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin
index f43683d11..f9113a7a7 100644
--- a/core/fmt/fmt.odin
+++ b/core/fmt/fmt.odin
@@ -1495,7 +1495,7 @@ fmt_pointer :: proc(fi: ^Info, p: rawptr, verb: rune) {
u := u64(uintptr(p))
switch verb {
case 'p', 'v', 'w':
- if !fi.hash && verb == 'v' {
+ if !fi.hash {
io.write_string(fi.writer, "0x", &fi.n)
}
_fmt_int(fi, u, 16, false, 8*size_of(rawptr), __DIGITS_UPPER)