aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index db6f83f610..0b69b6cfb7 100644
--- a/util.c
+++ b/util.c
@@ -2175,11 +2175,12 @@ break2:
break;
}
} while ('0' <= c && c <= '9');
+ nd0 += nd * dsign;
}
else {
if (dsign) goto ret0;
}
- dval(rv) = ldexp(adj, nd * dsign + nd0);
+ dval(rv) = ldexp(adj, nd0);
goto ret;
}
nz0 = 1;