lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject lucenenet git commit: remove unnecessary byte buffer
Date Mon, 05 Jan 2015 05:32:24 GMT
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 <laimis@gmail.com>
Authored: Sun Jan 4 20:26:47 2015 -0500
Committer: Laimonas Simutis <laimis@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()


Mime
View raw message