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 sbyte cast breaking comparison logic
Date Wed, 07 Jan 2015 03:33:57 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master e6f76bb95 -> bd5a84232


fix sbyte cast breaking comparison logic


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

Branch: refs/heads/master
Commit: bd5a8423274990a6bbd6b1fdb90a0e2cd0d185eb
Parents: e6f76bb
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Tue Jan 6 21:54:46 2015 -0500
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Wed Jan 7 05:33:23 2015 +0200

----------------------------------------------------------------------
 .../core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/bd5a8423/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 8add739..f68b356 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
@@ -66,7 +66,7 @@ namespace Lucene.Net.Codecs.Compressing
                 int matchLen = token & 0x0F;
                 if (matchLen == 0x0F)
                 {
-                    while (compressed[off] == unchecked((sbyte)0xFF))
+                    while (compressed[off] == 0xFF)
                     {
                         matchLen += 0xFF;
                         ++off;


Mime
View raw message