Skip to content

Commit

Permalink
Use std::numeric_limits<double>::max() instead of DVL_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 authored and nyalldawson committed Nov 16, 2022
1 parent 218acc6 commit 85ab270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -1227,7 +1227,7 @@ void QgsGeometryUtils::pointsToWKB( QgsWkbPtr &wkb, const QgsPointSequence &poin
double z = point.z();
if ( flags & QgsAbstractGeometry::FlagExportNanAsDoubleMin
&& std::isnan( z ) )
z = -DBL_MAX;
z = -std::numeric_limits<double>::max();

wkb << z;
}
Expand All @@ -1236,7 +1236,7 @@ void QgsGeometryUtils::pointsToWKB( QgsWkbPtr &wkb, const QgsPointSequence &poin
double m = point.m();
if ( flags & QgsAbstractGeometry::FlagExportNanAsDoubleMin
&& std::isnan( m ) )
m = -DBL_MAX;
m = -std::numeric_limits<double>::max();

wkb << m;
}
Expand Down

0 comments on commit 85ab270

Please sign in to comment.