lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhern...@apache.org
Subject [02/16] git commit: Order of operations issue with Packed64
Date Sun, 06 Oct 2013 23:47:50 GMT
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/8b399fff
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/8b399fff
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/8b399fff

Branch: refs/heads/branch_4x
Commit: 8b399fffa737a23fbfadda1c94b8653b2a7bae02
Parents: a8ad478
Author: Paul Irwin <paulirwin@gmail.com>
Authored: Tue Oct 1 14:26:55 2013 -0400
Committer: Paul Irwin <paulirwin@gmail.com>
Committed: Sat Oct 5 16:37:18 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/8b399fff/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