lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [07/10] lucenenet git commit: BUG: Lucene.Net.Util.UnicodeUtil: Removed unnecessary cast that sometimes causes assert to fail
Date Tue, 16 May 2017 14:28:27 GMT
BUG: Lucene.Net.Util.UnicodeUtil: Removed unnecessary cast that sometimes causes assert to
fail


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

Branch: refs/heads/master
Commit: 8eaf47e12defb639a42b41964105afa329cea4c0
Parents: 08c81c8
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun May 14 05:03:00 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue May 16 19:17:13 2017 +0700

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8eaf47e1/src/Lucene.Net/Util/UnicodeUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Util/UnicodeUtil.cs b/src/Lucene.Net/Util/UnicodeUtil.cs
index d4ee04d..0e39d13 100644
--- a/src/Lucene.Net/Util/UnicodeUtil.cs
+++ b/src/Lucene.Net/Util/UnicodeUtil.cs
@@ -826,7 +826,7 @@ namespace Lucene.Net.Util
             int limit = offset + length;
             while (offset < limit)
             {
-                int b = ((sbyte)utf8[offset++]) & 0xff;
+                int b = utf8[offset++] & 0xff;
                 if (b < 0xc0)
                 {
                     Debug.Assert(b < 0x80);


Mime
View raw message