lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhern...@apache.org
Subject [01/12] git commit: Order of operations issue with Packed64
Date Sun, 06 Oct 2013 23:05:53 GMT
Updated Branches:
  refs/heads/branch_4x a8ad47860 -> 56e158b3f


Order of operations issue with Packed64


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/279224ad
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/279224ad
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/279224ad

Branch: refs/heads/branch_4x
Commit: 279224adcabb4341979ff111216d51ad7ccfc9b7
Parents: 07f83ff
Author: Paul Irwin <paulirwin@gmail.com>
Authored: Tue Oct 1 14:26:55 2013 -0400
Committer: Paul Irwin <paulirwin@gmail.com>
Committed: Tue Oct 1 14:26:55 2013 -0400

----------------------------------------------------------------------
 src/core/Util/Packed/Packed64.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/279224ad/src/core/Util/Packed/Packed64.cs
----------------------------------------------------------------------
diff --git a/src/core/Util/Packed/Packed64.cs b/src/core/Util/Packed/Packed64.cs
index 334731b..c7a94d6 100644
--- a/src/core/Util/Packed/Packed64.cs
+++ b/src/core/Util/Packed/Packed64.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.Util.Packed
             PackedInts.Format format = PackedInts.Format.PACKED;
             int longCount = format.LongCount(PackedInts.VERSION_CURRENT, valueCount, bitsPerValue);
             this.blocks = new long[longCount];
-            maskRight = ~0L << Number.URShift((BLOCK_SIZE - bitsPerValue), (BLOCK_SIZE
- bitsPerValue));
+            maskRight = Number.URShift(~0L << (BLOCK_SIZE - bitsPerValue), (BLOCK_SIZE
- bitsPerValue));
             bpvMinusBlockSize = bitsPerValue - BLOCK_SIZE;
         }
 


Mime
View raw message