mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
AK: Handle '%llu' in printf() (unsigned 64-bit integer)
I got a warning when using '%Q' since that's non-standard. This patch makes our printf family accept '%llu'.
This commit is contained in:
parent
05252cfd3a
commit
a1ea3754a3
Notes:
sideshowbarker
2024-07-19 11:28:44 +09:00
Author: https://github.com/awesomekling
Commit: a1ea3754a3
1 changed files with 4 additions and 1 deletions
|
@ -298,7 +298,10 @@ template<typename PutChFunc>
|
|||
break;
|
||||
|
||||
case 'u':
|
||||
ret += print_number(putch, bufptr, va_arg(ap, u32), left_pad, zeroPad, fieldWidth);
|
||||
if (long_qualifiers >= 2)
|
||||
ret += print_u64(putch, bufptr, va_arg(ap, u64), left_pad, zeroPad, fieldWidth);
|
||||
else
|
||||
ret += print_number(putch, bufptr, va_arg(ap, u32), left_pad, zeroPad, fieldWidth);
|
||||
break;
|
||||
|
||||
case 'Q':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue