[geos-commits] [SCM] GEOS branch 3.7 updated. 8b57c70979e2c1cd4f6c756f6aa08180406eb313

git at osgeo.org git at osgeo.org
Wed Sep 18 10:23:39 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, 3.7 has been updated
       via  8b57c70979e2c1cd4f6c756f6aa08180406eb313 (commit)
      from  8e8510b35827baa769ed8b84da39aaa9fb0fc38c (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 8b57c70979e2c1cd4f6c756f6aa08180406eb313
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Sep 18 10:23:26 2019 -0700

    Allow noop zeroing

diff --git a/src/precision/CommonBits.cpp b/src/precision/CommonBits.cpp
index 96eb820..5f380f0 100644
--- a/src/precision/CommonBits.cpp
+++ b/src/precision/CommonBits.cpp
@@ -43,7 +43,7 @@ CommonBits::numCommonMostSigMantissaBits(int64 num1, int64 num2)
 int64
 CommonBits::zeroLowerBits(int64 bits, int nBits)
 {
-	if (nBits >= 64 || nBits < 1) return 0;
+	if (nBits >= 64 || nBits < 0) return 0;
 	int64 bits_ = static_cast<int64>(bits);
 	int64 invMask = (1ull << nBits) - 1;
 	int64 mask = ~ invMask;

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

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


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list