mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Windows has no 'nearbyint' in libraries.
So removed.
This commit is contained in:
parent
eabcd6205c
commit
ae0ebd8a6b
1 changed files with 1 additions and 2 deletions
|
@ -568,8 +568,7 @@ int gcalc_set_double(Gcalc_internal_coord *c, double d, double ext)
|
|||
if ((sign= ds < 0))
|
||||
ds= -ds;
|
||||
c[0]= (gcalc_digit_t) (ds / (double) GCALC_DIG_BASE);
|
||||
c[1]= (gcalc_digit_t) nearbyint(ds -
|
||||
((double) c[0]) * (double) GCALC_DIG_BASE);
|
||||
c[1]= (gcalc_digit_t) (ds - ((double) c[0]) * (double) GCALC_DIG_BASE);
|
||||
if (c[1] >= GCALC_DIG_BASE)
|
||||
{
|
||||
c[1]= 0;
|
||||
|
|
Loading…
Reference in a new issue