[geos-commits] [SCM] GEOS branch master updated. abaa838bb869419d178c96653c7d066422664bf5
git at osgeo.org
git at osgeo.org
Wed Sep 18 10:24:16 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 abaa838bb869419d178c96653c7d066422664bf5 (commit)
from 311b64a08768c3d4f2329ec4647070928058bcd2 (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 abaa838bb869419d178c96653c7d066422664bf5
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Sep 18 10:24:07 2019 -0700
Allow noop zeroing
diff --git a/src/precision/CommonBits.cpp b/src/precision/CommonBits.cpp
index b2ba370..69eb6b1 100644
--- a/src/precision/CommonBits.cpp
+++ b/src/precision/CommonBits.cpp
@@ -44,7 +44,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;
const uint64_t bits_ = static_cast<uint64_t>(bits);
const uint64_t invMask = (1ull << nBits) - 1;
const uint64_t 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