summaryrefslogtreecommitdiff
path: root/storage/innobase/gis/gis0geo.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2016-12-05 17:01:28 +0200
committerGitHub <noreply@github.com>2016-12-05 17:01:28 +0200
commit660521a43ac9f9f9f5850270168317b586bcbf43 (patch)
tree341a4279a5ea1ab32155a1e4f6f9f8593ebfdf53 /storage/innobase/gis/gis0geo.cc
parentcc85ba8f2efdb48de65ac058b0a18edc5b80cf6a (diff)
parentb11eb36963793452128ebaa3a2f4057c4eca20f2 (diff)
downloadmariadb-git-660521a43ac9f9f9f5850270168317b586bcbf43.tar.gz
Merge pull request #263 from grooverdan/10.2-MDEV-11451-isfinite
MDEV-11451: isinf || isnan -> !isfinite
Diffstat (limited to 'storage/innobase/gis/gis0geo.cc')
-rw-r--r--storage/innobase/gis/gis0geo.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/innobase/gis/gis0geo.cc b/storage/innobase/gis/gis0geo.cc
index b90b47dc08c..436249c0026 100644
--- a/storage/innobase/gis/gis0geo.cc
+++ b/storage/innobase/gis/gis0geo.cc
@@ -364,8 +364,9 @@ mbr_join_square(
b += 2;
} while (a != end);
- /* Check for infinity or NaN, so we don't get NaN in calculations */
- if (my_isinf(square) || my_isnan(square)) {
+ /* Check if finite (not infinity or NaN),
+ so we don't get NaN in calculations */
+ if (!isfinite(square)) {
return DBL_MAX;
}