summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-19 21:59:22 +0000
committerbde <bde@FreeBSD.org>1997-12-19 21:59:22 +0000
commit5aae0154c8000efba0fcfaf5fb382f21ffc12752 (patch)
tree1e2e5f7de9d9134ed39b49dbec731bfa559bee6d /lib/libc
parent923afd2c1869278499c76de901bba6a268f02642 (diff)
downloadFreeBSD-src-5aae0154c8000efba0fcfaf5fb382f21ffc12752.zip
FreeBSD-src-5aae0154c8000efba0fcfaf5fb382f21ffc12752.tar.gz
Comment that long double is poorly implemented, not that it is unimplemented.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/vfprintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 61dba47..105d7fe 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$";
+ "$Id: vfprintf.c,v 1.12 1997/02/22 15:02:40 peter Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -284,7 +284,7 @@ static int exponent __P((char *, int, int));
#define ALT 0x001 /* alternate form */
#define HEXPREFIX 0x002 /* add 0x or 0X prefix */
#define LADJUST 0x004 /* left adjustment */
-#define LONGDBL 0x008 /* long double; unimplemented */
+#define LONGDBL 0x008 /* long double */
#define LONGINT 0x010 /* long integer */
#define QUADINT 0x020 /* quad integer */
#define SHORTINT 0x040 /* short integer */
@@ -591,6 +591,7 @@ reswitch: switch (ch) {
fp_begin: if (prec == -1)
prec = DEFPREC;
if (flags & LONGDBL)
+ /* XXX this loses precision. */
_double = (double)GETARG(long double);
else
_double = GETARG(double);
OpenPOWER on IntegriCloud