[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha1-115-g5773aca

git at osgeo.org git at osgeo.org
Mon May 11 09:49:17 PDT 2020


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  5773acadab520baac6cb4fa0598bb107d71bb5de (commit)
      from  10c9dc2ac242c194763a47edab2b2487b42eb3a6 (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 5773acadab520baac6cb4fa0598bb107d71bb5de
Author: Raúl Marín <git at rmr.ninja>
Date:   Mon May 11 18:30:10 2020 +0200

    Remove redundant assert

diff --git a/libpgcommon/lwgeom_cache.c b/libpgcommon/lwgeom_cache.c
index 74609ee..cea88ca 100644
--- a/libpgcommon/lwgeom_cache.c
+++ b/libpgcommon/lwgeom_cache.c
@@ -143,7 +143,6 @@ GetGeomCache(FunctionCallInfo fcinfo,
 	GenericCacheCollection* generic_cache = GetGenericCacheCollection(fcinfo);
 	uint32_t entry_number = cache_methods->entry_number;
 
-	Assert(entry_number >= 0);
 	Assert(entry_number < NUM_CACHE_ENTRIES);
 
 	cache = (GeomCache*)(generic_cache->entry[entry_number]);
@@ -505,4 +504,4 @@ GetSRIDCacheBySRS(FunctionCallInfo fcinfo, const char *srs)
 	}
 
 	return arg->srid;
-}
\ No newline at end of file
+}

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

Summary of changes:
 libpgcommon/lwgeom_cache.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list