summaryrefslogtreecommitdiff
path: root/stdio-common/printf_fphex.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-08-03 15:26:02 +0000
committerUlrich Drepper <drepper@redhat.com>2006-08-03 15:26:02 +0000
commit6c215a8d6c972ca3324107109c393f21e782fb10 (patch)
treeb364b344931ab3bbb16f020b59c5ee7f35188484 /stdio-common/printf_fphex.c
parent9c06eb66b5b4662c22532ab03525eab46c4cf2eb (diff)
* grp/initgroups.c (internal_getgrouplist): Remove unnecessary
test introduced in patch for bz #661. (getgrouplist): Simplify code a bit.
Diffstat (limited to 'stdio-common/printf_fphex.c')
-rw-r--r--stdio-common/printf_fphex.c5
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;