diff options
Diffstat (limited to 'vsnprintf.c')
-rw-r--r-- | vsnprintf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vsnprintf.c b/vsnprintf.c index 88a36a102e..ebcb882f89 100644 --- a/vsnprintf.c +++ b/vsnprintf.c @@ -784,8 +784,10 @@ reswitch: switch (ch) { #ifdef FLOATING_POINT case 'a': case 'A': - if (prec >= 0) + if (prec >= 0) { + flags |= ALT; prec++; + } goto fp_begin; case 'e': /* anomalous precision */ case 'E': |