You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/01/05 06:32:24 UTC
lucenenet git commit: remove unnecessary byte buffer
Repository: lucenenet
Updated Branches:
refs/heads/master 67f47ad1b -> 39ae8f9f0
remove unnecessary byte buffer
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/39ae8f9f
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/39ae8f9f
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/39ae8f9f
Branch: refs/heads/master
Commit: 39ae8f9f0ec9705a81f736215123e73964f6ef07
Parents: 67f47ad
Author: Laimonas Simutis <la...@gmail.com>
Authored: Sun Jan 4 20:26:47 2015 -0500
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Sun Jan 4 20:26:47 2015 -0500
----------------------------------------------------------------------
src/Lucene.Net.Core/Support/Inflater.cs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/39ae8f9f/src/Lucene.Net.Core/Support/Inflater.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Inflater.cs b/src/Lucene.Net.Core/Support/Inflater.cs
index 38a2129..b7118a3 100644
--- a/src/Lucene.Net.Core/Support/Inflater.cs
+++ b/src/Lucene.Net.Core/Support/Inflater.cs
@@ -102,9 +102,7 @@ namespace Lucene.Net.Support
public int Inflate(byte[] buffer, int offset, int count)
{
- //LUCENE TODO: brute-force converting for now to eliminate TypeMismatchError
- byte[] byteBuffer = buffer.Select(b => (byte)b).ToArray();
- return inflate3Method(byteBuffer, offset, count);
+ return inflate3Method(buffer, offset, count);
}
public void Reset()