[GRASS-SVN] r73165 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 24 06:00:31 PDT 2018


Author: mmetz
Date: 2018-08-24 06:00:30 -0700 (Fri, 24 Aug 2018)
New Revision: 73165

Modified:
   grass/trunk/lib/vector/Vlib/intersect2.c
Log:
Vlib: reduce dynamic fp representation error threshold

Modified: grass/trunk/lib/vector/Vlib/intersect2.c
===================================================================
--- grass/trunk/lib/vector/Vlib/intersect2.c	2018-08-24 11:35:59 UTC (rev 73164)
+++ grass/trunk/lib/vector/Vlib/intersect2.c	2018-08-24 13:00:30 UTC (rev 73165)
@@ -123,9 +123,9 @@
     /* unit in the last place (ULP):
      * smallest representable difference
      * shift of the exponent
-     * float: 23, double: 52, middle: 37 */
+     * float: 23, double: 52, middle: 37.5 */
     result = frexp(dmax, &exp);
-    exp -= 23;
+    exp -= 38;
     result = ldexp(result, exp);
 
     return result;



More information about the grass-commit mailing list