1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +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:
Andreas Kling 2019-11-02 10:35:08 +01:00
parent 05252cfd3a
commit a1ea3754a3

View file

@ -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':