diff options
Diffstat (limited to 'thirdparty/msdfgen/core/SignedDistance.cpp')
-rw-r--r-- | thirdparty/msdfgen/core/SignedDistance.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/thirdparty/msdfgen/core/SignedDistance.cpp b/thirdparty/msdfgen/core/SignedDistance.cpp index 18c9d2c424..be956d953e 100644 --- a/thirdparty/msdfgen/core/SignedDistance.cpp +++ b/thirdparty/msdfgen/core/SignedDistance.cpp @@ -2,12 +2,11 @@ #include "SignedDistance.h" #include <cmath> +#include <cfloat> namespace msdfgen { -const SignedDistance SignedDistance::INFINITE(-1e240, 1); - -SignedDistance::SignedDistance() : distance(-1e240), dot(1) { } +SignedDistance::SignedDistance() : distance(-DBL_MAX), dot(1) { } SignedDistance::SignedDistance(double dist, double d) : distance(dist), dot(d) { } |