summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/xprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/xprintf.c')
-rw-r--r--lib/libc/stdio/xprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/xprintf.c b/lib/libc/stdio/xprintf.c
index c7814fa..8d529fc 100644
--- a/lib/libc/stdio/xprintf.c
+++ b/lib/libc/stdio/xprintf.c
@@ -496,10 +496,14 @@ __v2printf(FILE *fp, const char *fmt0, unsigned pct, const va_list ap)
args[ch].pwchararg = va_arg (ap, wchar_t *);
break;
case PA_DOUBLE:
+#ifndef NO_FLOATING_POINT
args[ch].doublearg = va_arg (ap, double);
+#endif
break;
case PA_DOUBLE | PA_FLAG_LONG_DOUBLE:
+#ifndef NO_FLOATING_POINT
args[ch].longdoublearg = va_arg (ap, long double);
+#endif
break;
default:
errx(1, "argtype = %x (fmt = \"%s\")\n",
OpenPOWER on IntegriCloud