AK: Fix PrintfImplementation "%x" handling for u32

This also fixes an issue with the color input value being messed up.
oops :P
This commit is contained in:
AnotherTest 2020-09-12 15:28:27 +04:30 committed by Andreas Kling
parent ad031ec5d7
commit 1674903dcc
Notes: sideshowbarker 2024-07-19 02:43:34 +09:00

View file

@ -358,7 +358,7 @@ struct PrintfImpl {
{
if (state.long_qualifiers >= 2)
return print_hex(m_putch, m_bufptr, NextArgument<u64>()(ap), false, state.alternate_form, state.left_pad, state.zero_pad, state.field_width);
return print_hex(m_putch, m_bufptr, NextArgument<u64>()(ap), false, state.alternate_form, state.left_pad, state.zero_pad, state.field_width);
return print_hex(m_putch, m_bufptr, NextArgument<u32>()(ap), false, state.alternate_form, state.left_pad, state.zero_pad, state.field_width);
}
ALWAYS_INLINE int format_X(const ModifierState& state, ArgumentListRefT ap) const
{