prevent overflow
This commit is contained in:
parent
7e8d7af500
commit
094d427268
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ atof(p)
|
|||
while (exp) {
|
||||
if (exp % 2) correction *= exp5;
|
||||
exp /= 2;
|
||||
exp5 *= exp5;
|
||||
if (exp != 0) exp5 *= exp5;
|
||||
}
|
||||
if (expsign) fl = fl / correction;
|
||||
else fl = fl * correction;
|
||||
|
|
Loading…
Reference in a new issue