mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
AK: Pad %b and %w to two and four places in printf
This commit is contained in:
parent
64b1e9deec
commit
9273589c5e
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue