diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2011-11-22 17:32:05 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2011-11-22 17:32:05 +0400 |
commit | ae0ebd8a6b0d239b5910093cb59761493f671542 (patch) | |
tree | a7c8d0ac60d388df736aca1801d87b7a4d0d4d84 | |
parent | eabcd6205c3f12a1c9f469b711022286abaab6d8 (diff) | |
download | mariadb-git-ae0ebd8a6b0d239b5910093cb59761493f671542.tar.gz |
Windows has no 'nearbyint' in libraries.
So removed.
-rw-r--r-- | sql/gcalc_slicescan.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/gcalc_slicescan.cc b/sql/gcalc_slicescan.cc index 624ca1aff56..81516029f25 100644 --- a/sql/gcalc_slicescan.cc +++ b/sql/gcalc_slicescan.cc @@ -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; |