Fix AdaptiveRecvByteBufAllocator.getSizeTableIndex()

This commit is contained in:
Trustin Lee 2013-06-21 07:36:32 +09:00
parent c9d01b2fb5
commit c77f03d886

View File

@ -63,7 +63,7 @@ public class AdaptiveRecvByteBufAllocator implements RecvByteBufAllocator {
private static int getSizeTableIndex(final int size) { private static int getSizeTableIndex(final int size) {
for (int low = 0, high = SIZE_TABLE.length - 1;;) { for (int low = 0, high = SIZE_TABLE.length - 1;;) {
if (high < low) { if (high < low) {
return 0; return low;
} }
if (high == low) { if (high == low) {
return high; return high;