mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
AK: Pad %b and %w to two and four places in printf
This commit is contained in:
parent
64b1e9deec
commit
9273589c5e
Notes:
sideshowbarker
2024-07-19 12:13:11 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/9273589c5eb Pull-request: https://github.com/SerenityOS/serenity/pull/528
@ -331,11 +331,11 @@ template<typename PutChFunc>
|
||||
break;
|
||||
|
||||
case 'w':
|
||||
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, left_pad, zeroPad, 4);
|
||||
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, true, true, 4);
|
||||
break;
|
||||
|
||||
case 'b':
|
||||
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, left_pad, zeroPad, 2);
|
||||
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, true, true, 2);
|
||||
break;
|
||||
|
||||
case 'c':
|
||||
|
Loading…
Reference in New Issue
Block a user