AK: Make PrintfImplementation treat %lld as 64-bit

This commit is contained in:
Andreas Kling 2020-02-08 01:42:05 +01:00
parent 28a5e33134
commit a7e72f78cd
Notes: sideshowbarker 2024-07-19 09:32:20 +09:00

View File

@ -331,7 +331,10 @@ template<typename PutChFunc>
case 'd':
case 'i':
ret += print_signed_number(putch, bufptr, va_arg(ap, int), left_pad, zeroPad, fieldWidth, always_sign);
if (long_qualifiers >= 2)
ret += print_i64(putch, bufptr, va_arg(ap, i64), left_pad, zeroPad, fieldWidth);
else
ret += print_signed_number(putch, bufptr, va_arg(ap, int), left_pad, zeroPad, fieldWidth, always_sign);
break;
case 'u':