aboutsummaryrefslogtreecommitdiffstats
path: root/vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vsnprintf.c b/vsnprintf.c
index 5f564c2abf..6778b90d8f 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -790,7 +790,7 @@ reswitch: switch (ch) {
#ifdef FLOATING_POINT
case 'a':
case 'A':
- if (prec >= 0) {
+ if (prec > 0) {
flags |= ALT;
prec++;
}