lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject lucenenet git commit: don't convert to sbyte
Date Wed, 25 Feb 2015 10:34:15 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master f77e83ecd -> 5401ade2f


don't convert to sbyte


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

Branch: refs/heads/master
Commit: 5401ade2f6fb6e8d8aee4b8c8f86c2ac824c75e2
Parents: f77e83e
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Tue Feb 24 20:05:48 2015 -0600
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Tue Feb 24 20:05:48 2015 -0600

----------------------------------------------------------------------
 .../core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5401ade2/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
index f68b356..feb57d0 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
@@ -26,8 +26,6 @@ namespace Lucene.Net.Codecs.Compressing
     [TestFixture]
     public abstract class AbstractTestLZ4CompressionMode : AbstractTestCompressionMode
     {
-        private LZ4 lz4;
-
         public override byte[] Test(byte[] decompressed)
         {
             var compressed = base.Test(decompressed);
@@ -39,7 +37,7 @@ namespace Lucene.Net.Codecs.Compressing
                 int literalLen = (int)((uint)token >> 4);
                 if (literalLen == 0x0F)
                 {
-                    while (compressed[off] == unchecked((sbyte)0xFF))
+                    while (compressed[off] == 0xFF)
                     {
                         literalLen += 0xFF;
                         ++off;


Mime
View raw message