diff options
Diffstat (limited to 'storage/innobase/gis/gis0geo.cc')
-rw-r--r-- | storage/innobase/gis/gis0geo.cc | 5 |
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; } |