diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2018-05-25 22:09:07 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-05-26 13:17:22 +0400 |
commit | bc469a0bdf85400f7a63834f5b7af1a513dcdec9 (patch) | |
tree | cc68b2d951347b243f988962b948e5a81a2ef395 /sql/field.cc | |
parent | 3bbc30c73b3db740391848ee0ac7e64d5d1d1c8c (diff) | |
download | mariadb-git-bc469a0bdf85400f7a63834f5b7af1a513dcdec9.tar.gz |
Cleanup isinf() portability checks
Original problem reported by Wlad: re-compilation of 10.3 on top of 10.2
build would cache undefined HAVE_ISINF from 10.2, whereas it is expected
to be 1 in 10.3.
std::isinf() seem to be available on all supported platforms.
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc index 4e420dbe980..35c5fe18175 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -4705,7 +4705,7 @@ int truncate_double(double *nr, uint field_length, uint dec, max_value-= 1.0 / log_10[dec]; /* Check for infinity so we don't get NaN in calculations */ - if (!my_isinf(res)) + if (!std::isinf(res)) { double tmp= rint((res - floor(res)) * log_10[dec]) / log_10[dec]; res= floor(res) + tmp; |