You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/05/16 14:28:27 UTC
[07/10] lucenenet git commit: BUG: Lucene.Net.Util.UnicodeUtil:
Removed unnecessary cast that sometimes causes assert to fail
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 <sh...@shadstorhaug.com>
Authored: Sun May 14 05:03:00 2017 +0700
Committer: Shad Storhaug <sh...@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);