aboutsummaryrefslogtreecommitdiff
path: root/nuttx/libc/stdio/lib_libvsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/libc/stdio/lib_libvsprintf.c')
-rw-r--r--nuttx/libc/stdio/lib_libvsprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/libc/stdio/lib_libvsprintf.c b/nuttx/libc/stdio/lib_libvsprintf.c
index 3d26ff810..2cc7950f7 100644
--- a/nuttx/libc/stdio/lib_libvsprintf.c
+++ b/nuttx/libc/stdio/lib_libvsprintf.c
@@ -1245,10 +1245,12 @@ int lib_vsprintf(FAR struct lib_outstream_s *obj, FAR const char *src, va_list a
{
#ifndef CONFIG_NOPRINTF_FIELDWIDTH
fmt = FMT_RJUST0;
+#ifdef CONFIG_LIBC_FLOATINGPOINT
if (IS_HASDOT(flags)) {
trunc = 0;
}
#endif
+#endif
}
#if 0
/* Center justification. */