From 157c87b2a2ce3d82bb55bcabd746f14d1a810e12 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 15 Jul 2022 00:34:26 +0100 Subject: [PATCH] Fix typo --- core/fmt/fmt.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index e03dfd678..4db140afa 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -1014,7 +1014,7 @@ fmt_pointer :: proc(fi: ^Info, p: rawptr, verb: rune) { u := u64(uintptr(p)) switch verb { case 'p', 'v': - if !fi.hash || verb == 'v' { + if !fi.hash && verb == 'v' { io.write_string(fi.writer, "0x", &fi.n) } _fmt_int(fi, u, 16, false, 8*size_of(rawptr), __DIGITS_UPPER)