From c08df128f0fdf5195eecc91e77ba72b0c60b6a47 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Mon, 1 Apr 2019 22:26:37 +0200 Subject: 2geom: update to 7e3b3f75023c7c69fd085574cfaa46de0213bbbc --- src/2geom/point.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/2geom/point.cpp') diff --git a/src/2geom/point.cpp b/src/2geom/point.cpp index bcdbab429..a48395b0c 100644 --- a/src/2geom/point.cpp +++ b/src/2geom/point.cpp @@ -74,7 +74,7 @@ namespace Geom { void Point::normalize() { double len = hypot(_pt[0], _pt[1]); if(len == 0) return; - if(IS_NAN(len)) return; + if(std::isnan(len)) return; static double const inf = HUGE_VAL; if(len != inf) { *this /= len; @@ -132,7 +132,7 @@ Coord L1(Point const &p) { Coord LInfty(Point const &p) { Coord const a(fabs(p[0])); Coord const b(fabs(p[1])); - return ( a < b || IS_NAN(b) + return ( a < b || std::isnan(b) ? b : a ); } -- cgit v1.2.3