[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0beta2-10-gd0b68e84a

git at osgeo.org git at osgeo.org
Sat Jul 23 21:16:09 PDT 2022


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, master has been updated
       via  d0b68e84ab91d4966925f0781a953aae26278957 (commit)
      from  8cff748a310253c20b769f13419cb2363e5160f8 (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 d0b68e84ab91d4966925f0781a953aae26278957
Author: Regina Obe <lr at pcorp.us>
Date:   Sun Jul 24 00:16:04 2022 -0400

    Clean up the formatting of last commit.

diff --git a/liblwgeom/cunit/cu_minimum_bounding_circle.c b/liblwgeom/cunit/cu_minimum_bounding_circle.c
index 3f49ec9a9..663572c5e 100644
--- a/liblwgeom/cunit/cu_minimum_bounding_circle.c
+++ b/liblwgeom/cunit/cu_minimum_bounding_circle.c
@@ -25,23 +25,22 @@ static void mbc_test(LWGEOM* g)
 	char *msg1 = "mbc_test failed (got %.12f should be less than radius %.12f) \n";
 	while (lwpointiterator_next(it, &p4))
 	{
-			p.x = p4.x;
-			p.y = p4.y;
+		p.x = p4.x;
+		p.y = p4.y;
 
-			/* We need to store the distance in a variable before the assert so that
-				* it is rounded from its 80-bit representation (on x86) down to 64 bits.
-				* */
-			volatile double d = distance2d_pt_pt(result->center, &p);
-			//char *msg1 = "mbc_test failed (got %.12f expected %.12f) \n";
-			if ( (d - result->radius) > 0.0000001  )
-			{
-							printf(msg1, d, result->radius);
-							CU_FAIL();
-			}
-			else
-			{
-							CU_PASS();
-			}
+		/* We need to store the distance in a variable before the assert so that
+		* it is rounded from its 80-bit representation (on x86) down to 64 bits.
+		* */
+		volatile double d = distance2d_pt_pt(result->center, &p);
+		if ( (d - result->radius) > 0.0000001  )
+		{
+			printf(msg1, d, result->radius);
+			CU_FAIL();
+		}
+		else
+		{
+			CU_PASS();
+		}
 	}
 
 	lwboundingcircle_destroy(result);

-----------------------------------------------------------------------

Summary of changes:
 liblwgeom/cunit/cu_minimum_bounding_circle.c | 31 ++++++++++++++--------------
 1 file changed, 15 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list