diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-01-14 13:02:36 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-01-14 13:02:36 (GMT) |
commit | 03774fac622e35a4fa16901b0de181707effd930 (patch) | |
tree | acd7bff0bb75dd32663cf019a018597b5fa8bdbc /Python | |
parent | d234208588ed84e97d95df294f33e4426211682c (diff) | |
download | cpython-03774fac622e35a4fa16901b0de181707effd930.zip cpython-03774fac622e35a4fa16901b0de181707effd930.tar.gz cpython-03774fac622e35a4fa16901b0de181707effd930.tar.bz2 |
Fix off-by-one error introduced in r77483. I have a test for this, but it currently fails due to a different dtoa.c bug; I'll add the test once that bug is fixed.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/dtoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c index 8389eb2..59833a0 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; } |