Kaydet (Commit) 03774fac authored tarafından Mark Dickinson's avatar Mark Dickinson

Fix off-by-one error introduced in r77483. I have a test for this, but it…

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.
üst d2342085
...@@ -1303,7 +1303,7 @@ bigcomp(U *rv, const char *s0, BCinfo *bc) ...@@ -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) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment