summaryrefslogtreecommitdiff
path: root/Python/dtoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r--Python/dtoa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c
index 8389eb2352..59833a030c 100644
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -1303,7 +1303,7 @@ bigcomp(U *rv, const char *s0, BCinfo *bc)
if (dd)
goto ret;
if (!b->x[0] && b->wds == 1) {
- if (i < nd)
+ if (i < nd - 1)
dd = 1;
goto ret;
}
@@ -1319,7 +1319,7 @@ bigcomp(U *rv, const char *s0, BCinfo *bc)
if (dd)
goto ret;
if (!b->x[0] && b->wds == 1) {
- if (i < nd)
+ if (i < nd - 1)
dd = 1;
goto ret;
}