[geos-commits] [SCM] GEOS branch master updated. 2c9bfe8a298e41c29046d286b35e8a69345a1807

git at osgeo.org git at osgeo.org
Tue Sep 17 15:39:50 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  2c9bfe8a298e41c29046d286b35e8a69345a1807 (commit)
      from  4701553c4b8554f4f1e15d7119780ec5fa1c3cc5 (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 2c9bfe8a298e41c29046d286b35e8a69345a1807
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Sep 17 15:36:36 2019 -0700

    Handle nbits > 63
    References #869

diff --git a/src/precision/CommonBits.cpp b/src/precision/CommonBits.cpp
index 784a07e..a960803 100644
--- a/src/precision/CommonBits.cpp
+++ b/src/precision/CommonBits.cpp
@@ -44,6 +44,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