ByteArrayCompare: array.Length field proper, not Count() LINQ

This commit is contained in:
Arkadiusz Bulski 2018-01-22 19:56:02 +01:00
parent eed912a781
commit 5a9d8f36dd
1 changed files with 2 additions and 2 deletions

View File

@ -633,8 +633,8 @@ namespace Kaitai
{
if (a == b)
return 0;
int al = a.Count();
int bl = b.Count();
int al = a.Length;
int bl = b.Length;
int minLen = al < bl ? al : bl;
for (int i = 0; i < minLen; i++) {
int cmp = a[i] - b[i];