From 60caffb113e6327c1d66b012088a6f67c85b7b70 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sun, 7 Mar 2021 15:05:33 +0100 Subject: [PATCH] AK+LibC: Make %p specifier Architecture Independent We were using u32 as a pointer representation and not FlatPtr --- AK/PrintfImplementation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h index 92dc9681ee..dce6a20110 100644 --- a/AK/PrintfImplementation.h +++ b/AK/PrintfImplementation.h @@ -373,11 +373,11 @@ struct PrintfImpl { } ALWAYS_INLINE int format_p(const ModifierState&, ArgumentListRefT ap) const { - return print_hex(m_putch, m_bufptr, NextArgument()(ap), false, true, false, true, 8); + return print_hex(m_putch, m_bufptr, NextArgument()(ap), false, true, false, true, 8); } ALWAYS_INLINE int format_P(const ModifierState&, ArgumentListRefT ap) const { - return print_hex(m_putch, m_bufptr, NextArgument()(ap), true, true, false, true, 8); + return print_hex(m_putch, m_bufptr, NextArgument()(ap), true, true, false, true, 8); } ALWAYS_INLINE int format_percent(const ModifierState&, ArgumentListRefT) const {