[geos-commits] [SCM] GEOS branch svn-3.6 updated. f1868e13354fb72cd14b4649e1ee9124ce079e62
git at osgeo.org
git at osgeo.org
Tue Sep 17 15:40:53 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, svn-3.6 has been updated
via f1868e13354fb72cd14b4649e1ee9124ce079e62 (commit)
via b8a51cb050b4af0ec6d0c2a9d3b533bbec17645f (commit)
from dfea6aaac4af05800e1806fb99292ca943ac2d5a (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 f1868e13354fb72cd14b4649e1ee9124ce079e62
Merge: b8a51cb dfea6aa
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Sep 17 15:40:49 2019 -0700
Merge branch 'svn-3.6' of https://git.osgeo.org/gogs/geos/geos into svn-3.6
commit b8a51cb050b4af0ec6d0c2a9d3b533bbec17645f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Sep 17 15:40:13 2019 -0700
Handle nbits > 63
3.6 branch
Closes #869
diff --git a/src/precision/CommonBits.cpp b/src/precision/CommonBits.cpp
index f3954d3..a1cd754 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