Fix AdaptiveRecvByteBufAllocator.getSizeTableIndex()
This commit is contained in:
parent
c9d01b2fb5
commit
c77f03d886
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user