diff options
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/printf_fphex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stdio-common/printf_fphex.c b/stdio-common/printf_fphex.c index 6711ccc82b..4e30d94c61 100644 --- a/stdio-common/printf_fphex.c +++ b/stdio-common/printf_fphex.c @@ -404,7 +404,10 @@ __printf_fphex (FILE *fp, { exponent -= 4; if (exponent <= 0) - expnegative = 0; + { + exponent = -exponent; + expnegative = 0; + } } else exponent += 4; |