You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/03/08 08:29:31 UTC

lucenenet git commit: fix Bits2words logic

Repository: lucenenet
Updated Branches:
  refs/heads/master 52b13ba03 -> 8223d5498


fix Bits2words logic


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

Branch: refs/heads/master
Commit: 8223d5498231cff7034d5034bda8d2e2adfd1205
Parents: 52b13ba
Author: Laimonas Simutis <la...@gmail.com>
Authored: Sat Mar 7 20:59:16 2015 -0500
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Sat Mar 7 20:59:16 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/OpenBitSet.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8223d549/src/Lucene.Net.Core/Util/OpenBitSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/OpenBitSet.cs b/src/Lucene.Net.Core/Util/OpenBitSet.cs
index cae4546..c709064 100644
--- a/src/Lucene.Net.Core/Util/OpenBitSet.cs
+++ b/src/Lucene.Net.Core/Util/OpenBitSet.cs
@@ -1060,7 +1060,7 @@ namespace Lucene.Net.Util
         /// returns the number of 64 bit words it would take to hold numBits </summary>
         public static int Bits2words(long numBits)
         {
-            return (int)(((int)((uint)(numBits - 1) >> 6)) + 1);
+            return (int)(((numBits - 1) >> 6) + 1);
         }
 
         /// <summary>