mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Make %llx work in printf
This commit is contained in:
parent
3d936d51fd
commit
f2135d7d00
Notes:
sideshowbarker
2024-07-19 02:59:04 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/f2135d7d000 Pull-request: https://github.com/SerenityOS/serenity/pull/3320 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
1 changed files with 4 additions and 1 deletions
|
@ -411,7 +411,10 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm
|
|||
|
||||
case 'X':
|
||||
case 'x':
|
||||
ret += print_hex(putch, bufptr, va_arg(ap, u32), *p == 'X', alternate_form, left_pad, zero_pad, field_width);
|
||||
if (long_qualifiers >= 2)
|
||||
ret += print_hex(putch, bufptr, va_arg(ap, u64), *p == 'X', alternate_form, left_pad, zero_pad, field_width);
|
||||
else
|
||||
ret += print_hex(putch, bufptr, va_arg(ap, u32), *p == 'X', alternate_form, left_pad, zero_pad, field_width);
|
||||
break;
|
||||
|
||||
case 'w':
|
||||
|
|
Loading…
Reference in a new issue