[geos-commits] r4147 - trunk/src/algorithm

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Feb 22 09:06:00 PST 2016


Author: strk
Date: 2016-02-22 09:06:00 -0800 (Mon, 22 Feb 2016)
New Revision: 4147

Modified:
   trunk/src/algorithm/RobustDeterminant.cpp
Log:
! FINITE already includes NAN, duplicate test unneeded

Modified: trunk/src/algorithm/RobustDeterminant.cpp
===================================================================
--- trunk/src/algorithm/RobustDeterminant.cpp	2016-02-17 11:40:35 UTC (rev 4146)
+++ trunk/src/algorithm/RobustDeterminant.cpp	2016-02-22 17:06:00 UTC (rev 4147)
@@ -59,8 +59,7 @@
 	double k;
 
   // Protect against non-finite numbers
-  if ( ISNAN(x1)   || ISNAN(y1)   || ISNAN(x2)   || ISNAN(y2) ||
-       !FINITE(x1) || !FINITE(y1) || !FINITE(x2) || !FINITE(y2) )
+  if ( !FINITE(x1) || !FINITE(y1) || !FINITE(x2) || !FINITE(y2) )
   {
     throw util::IllegalArgumentException("RobustDeterminant encountered non-finite numbers ");
   }



More information about the geos-commits mailing list