fix FastTreeMap hash <0 and comfortableCapacity size optimize

This commit is contained in:
libin committed 2023-11-09 12:00:23 +08:00
1 parent d8f1ef7f26
commit f1b0835fb5
2 files changed
+7 -2

No files matched your search

@@ -93,6 +93,9 @@ public class FastTreeMapIntLong {
var size = keys.length;
// 目标数小于或等于数组的第一个元素
if(key < 0){
key = Math.abs(key);
}
if (key <= keys[0]) {
return 0;
}