Browse Source

Vlib: reduce dynamic fp representation error threshold

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73165 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 6 years ago
parent
commit
c38390f6a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/vector/Vlib/intersect2.c

+ 2 - 2
lib/vector/Vlib/intersect2.c

@@ -123,9 +123,9 @@ static double d_ulp(double a, double b)
     /* 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;