prevent overflow
This commit is contained in:
parent
5bde69d625
commit
5bd25f4545
@ -68,7 +68,7 @@ atof(p)
|
|||||||
while (exp) {
|
while (exp) {
|
||||||
if (exp % 2) correction *= exp5;
|
if (exp % 2) correction *= exp5;
|
||||||
exp /= 2;
|
exp /= 2;
|
||||||
exp5 *= exp5;
|
if (exp != 0) exp5 *= exp5;
|
||||||
}
|
}
|
||||||
if (expsign) fl = fl / correction;
|
if (expsign) fl = fl / correction;
|
||||||
else fl = fl * correction;
|
else fl = fl * correction;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user