diff --git a/libc/stdio/vfscanf.c b/libc/stdio/vfscanf.c index b16e3c711..78f404e27 100644 --- a/libc/stdio/vfscanf.c +++ b/libc/stdio/vfscanf.c @@ -162,7 +162,13 @@ literal: flags |= MAXINT; goto again; case 'L': - flags |= LONGDBL; + flags |= + (*fmt == 'd') ? LLONG : + (*fmt == 'i') ? LLONG : + (*fmt == 'o') ? LLONG : + (*fmt == 'u') ? LLONG : + (*fmt == 'x') ? LLONG : + LONGDBL; goto again; case 'h': if (*fmt == 'h') {