HBASE-12202 Support DirectByteBuffer usage in HFileBlock - addendum

This commit is contained in:
anoopsjohn 2014-10-26 08:07:53 +05:30
parent 0fb4c4d5f0
commit 34f9962618
1 changed files with 2 additions and 2 deletions

View File

@ -486,8 +486,8 @@ public final class ByteBufferUtils {
int end1 = o1 + len1;
int end2 = o2 + len2;
for (int i = o1, j = o2; i < end1 && j < end2; i++, j++) {
byte a = buf1.get(i);
byte b = buf2.get(j);
int a = buf1.get(i) & 0xFF;
int b = buf2.get(j) & 0xFF;
if (a != b) {
return a - b;
}