1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:47:34 +00:00

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

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
{