[geos-commits] [SCM] GEOS branch svn-3.6 updated. adb162a6878a41d9c239d5ec8945fa86d7193611
git at osgeo.org
git at osgeo.org
Wed Sep 18 14:34:04 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 adb162a6878a41d9c239d5ec8945fa86d7193611 (commit)
from 7b6062ae55ad5e506b6331a64d6d911857a3a1fc (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 adb162a6878a41d9c239d5ec8945fa86d7193611
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Sep 18 14:33:50 2019 -0700
Old behaviour passes tests?
diff --git a/src/precision/CommonBits.cpp b/src/precision/CommonBits.cpp
index d209a07..cd3c9ef 100644
--- a/src/precision/CommonBits.cpp
+++ b/src/precision/CommonBits.cpp
@@ -44,12 +44,13 @@ int64
CommonBits::zeroLowerBits(int64 bits, int nBits)
{
if (nBits >= 64 || nBits < 0) return 0;
- int64 invMask = ((int64)1 << nBits) - 1;
+ int64 invMask = (1 << nBits)-1;
int64 mask = ~ invMask;
int64 zeroed = bits & mask;
return zeroed;
}
+
/*static public*/
int
CommonBits::getBit(int64 bits, int i)
-----------------------------------------------------------------------
Summary of changes:
src/precision/CommonBits.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list