[postgis-tickets] [SCM] PostGIS branch main updated. 3.2.0alpha1-44-gce97128
git at osgeo.org
git at osgeo.org
Wed Sep 29 13:51:29 PDT 2021
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, main has been updated
via ce971289084fb1c1437c43bf5da97d42debc84e1 (commit)
from e932634f1be90a17a66caec4a17177b04df9f080 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ce971289084fb1c1437c43bf5da97d42debc84e1
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Sep 29 22:49:41 2021 +0200
Fix ASSERT_DOUBLE_EQUAL_TOLERANCE
diff --git a/liblwgeom/cunit/cu_tester.h b/liblwgeom/cunit/cu_tester.h
index b876c2b..24a0354 100644
--- a/liblwgeom/cunit/cu_tester.h
+++ b/liblwgeom/cunit/cu_tester.h
@@ -36,7 +36,7 @@ typedef void (*PG_SuiteSetup)(void);
} while (0);
#define ASSERT_DOUBLE_EQUAL_TOLERANCE(o,e,t) do { \
- if ( o != e ) \
+ if ( fabs(o-e) > t ) \
fprintf(stderr, "[%s:%d]\n Expected: %g\n Obtained: %g\n Difference: %.15g\n Tolerated: %.15g\n", __FILE__, __LINE__, (double)(e), (o), fabs((o)-(e)), (t)); \
CU_ASSERT_DOUBLE_EQUAL(o,e,t); \
} while (0);
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/cunit/cu_tester.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list