Fix double floating point error in dtoa.c
When running an optimized build, compiler optimizations cause loss of precision unless we force the expression to use a double type.
This commit is contained in:
parent
f9f976b217
commit
b2a102fb58
@ -1290,7 +1290,7 @@ static double ratio(Bigint *a, Bigint *b)
|
|||||||
dval(&db)= b2d(b, &kb);
|
dval(&db)= b2d(b, &kb);
|
||||||
k= ka - kb + 32*(a->wds - b->wds);
|
k= ka - kb + 32*(a->wds - b->wds);
|
||||||
if (k > 0)
|
if (k > 0)
|
||||||
word0(&da)+= k*Exp_msk1;
|
word0(&da)+= k*Exp_msk1 * 1.0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
k= -k;
|
k= -k;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user