mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -1290,7 +1290,7 @@ static double ratio(Bigint *a, Bigint *b)
|
|||
dval(&db)= b2d(b, &kb);
|
||||
k= ka - kb + 32*(a->wds - b->wds);
|
||||
if (k > 0)
|
||||
word0(&da)+= k*Exp_msk1;
|
||||
word0(&da)+= k*Exp_msk1 * 1.0;
|
||||
else
|
||||
{
|
||||
k= -k;
|
||||
|
|
Loading…
Reference in a new issue