diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 1999-03-11 22:44:02 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 1999-03-11 22:44:02 +0000 |
| commit | 93263596acc4944849d5cdfdaa369f89bcfe4fb5 (patch) | |
| tree | d7eccf232066c8890e4bb70c7d83e9190445a967 /lib/libc/stdio/vfprintf.c | |
| parent | 56ce1a8dc43ddec31352b8d80762ac388b2a9b98 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
| -rw-r--r-- | lib/libc/stdio/vfprintf.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 3cb58ed163eb..0ffbc7337a86 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: vfprintf.c,v 1.19 1998/05/08 05:10:32 jb Exp $"; + "$Id: vfprintf.c,v 1.20 1998/09/16 04:17:44 imp Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -545,7 +545,10 @@ reswitch: switch (ch) { flags |= SHORTINT; goto rflag; case 'l': - flags |= LONGINT; + if (flags & LONGINT) + flags |= QUADINT; + else + flags |= LONGINT; goto rflag; case 'q': flags |= QUADINT; @@ -1016,7 +1019,10 @@ reswitch: switch (ch) { flags |= SHORTINT; goto rflag; case 'l': - flags |= LONGINT; + if (flags & LONGINT) + flags |= QUADINT; + else + flags |= LONGINT; goto rflag; case 'q': flags |= QUADINT; |
