mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
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.
This commit is contained in:
parent
d234208588
commit
03774fac62
1 changed files with 2 additions and 2 deletions
|
@ -1303,7 +1303,7 @@ bigcomp(U *rv, const char *s0, BCinfo *bc)
|
||||||
if (dd)
|
if (dd)
|
||||||
goto ret;
|
goto ret;
|
||||||
if (!b->x[0] && b->wds == 1) {
|
if (!b->x[0] && b->wds == 1) {
|
||||||
if (i < nd)
|
if (i < nd - 1)
|
||||||
dd = 1;
|
dd = 1;
|
||||||
goto ret;
|
goto ret;
|
||||||
}
|
}
|
||||||
|
@ -1319,7 +1319,7 @@ bigcomp(U *rv, const char *s0, BCinfo *bc)
|
||||||
if (dd)
|
if (dd)
|
||||||
goto ret;
|
goto ret;
|
||||||
if (!b->x[0] && b->wds == 1) {
|
if (!b->x[0] && b->wds == 1) {
|
||||||
if (i < nd)
|
if (i < nd - 1)
|
||||||
dd = 1;
|
dd = 1;
|
||||||
goto ret;
|
goto ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue