[geos-commits] [SCM] GEOS branch 3.7 updated. 6c5b169568dc1e9556748e56bb83f3875018bccc

git at osgeo.org git at osgeo.org
Tue Sep 17 15:39:41 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  6c5b169568dc1e9556748e56bb83f3875018bccc (commit)
      from  e95c65126c1685472283d3f7db45e063d13c015e (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 6c5b169568dc1e9556748e56bb83f3875018bccc
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Sep 17 15:39:22 2019 -0700

    Handle nbits > 37
    References #869

diff --git a/src/precision/CommonBits.cpp b/src/precision/CommonBits.cpp
index e8e4fd8..547ed5b 100644
--- a/src/precision/CommonBits.cpp
+++ b/src/precision/CommonBits.cpp
@@ -43,6 +43,7 @@ CommonBits::numCommonMostSigMantissaBits(int64 num1, int64 num2)
 int64
 CommonBits::zeroLowerBits(int64 bits, int nBits)
 {
+	if (nBits >= 64) return 0;
 	int64 invMask = (1<< nBits)-1;
 	int64 mask = ~ invMask;
 	int64 zeroed = bits & mask;

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

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


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list