[geos-commits] [SCM] GEOS branch master updated. 213c808d8d60e0d032effd1ac308b3144d908925

git at osgeo.org git at osgeo.org
Thu Jun 27 13:52:59 PDT 2019


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 "GEOS".

The branch, master has been updated
       via  213c808d8d60e0d032effd1ac308b3144d908925 (commit)
      from  03fd46a6c9a9bcfb46c592d4e79b62236aeced65 (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 213c808d8d60e0d032effd1ac308b3144d908925
Author: Daniel Baston <dbaston at gmail.com>
Date:   Thu Jun 27 16:51:29 2019 -0400

    Fix always-true conditional

diff --git a/src/geom/IntersectionMatrix.cpp b/src/geom/IntersectionMatrix.cpp
index f30216e..8850353 100644
--- a/src/geom/IntersectionMatrix.cpp
+++ b/src/geom/IntersectionMatrix.cpp
@@ -168,7 +168,7 @@ IntersectionMatrix::setAtLeast(Location row, Location col, int minimumDimensionV
 void
 IntersectionMatrix::setAtLeastIfValid(Location row, Location col, int minimumDimensionValue)
 {
-    if(static_cast<size_t>(row) >= 0 && static_cast<size_t>(col) >= 0) {
+    if(row != Location::UNDEF && col != Location::UNDEF) {
         setAtLeast(row, col, minimumDimensionValue);
     }
 }

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

Summary of changes:
 src/geom/IntersectionMatrix.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list