lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject lucenenet git commit: fix Bits2words logic
Date Sun, 08 Mar 2015 07:29:31 GMT
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 <laimis@gmail.com>
Authored: Sat Mar 7 20:59:16 2015 -0500
Committer: Laimonas Simutis <laimis@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>


Mime
View raw message