Support %lf and %lF in format string

Per C99 this should resolve to double.
This commit is contained in:
Alison Winters 2021-02-27 08:10:58 +00:00 committed by Justine Tunney
parent 35c7edac49
commit 5d334b9ce0
2 changed files with 5 additions and 0 deletions

View file

@ -215,6 +215,10 @@ hidden int palandprintf(void *fn, void *arg, const char *format, va_list va) {
signbit = sizeof(intmax_t) * 8 - 1;
break;
case 'l':
if (format[1] == 'f' || format[1] == 'F') {
format++;
break;
}
if (format[1] == 'l') format++;
/* fallthrough */
case 't': /* ptrdiff_t */