summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitrij Tejblum <dt@FreeBSD.org>1999-05-04 13:06:29 +0000
committerDmitrij Tejblum <dt@FreeBSD.org>1999-05-04 13:06:29 +0000
commit2fee0568bc05ee338d948e2f0437a7cae7764aad (patch)
tree6dd8b1e9ea53478d33752fe1e067e8d3895edc73 /lib
parentc358441c943a77bc99710358d0f42976f639ff78 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/vfprintf.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 3cb58ed163eb..13df81f17719 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.21 1999/03/11 22:44:02 dfr 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;