mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 18:19:28 +00:00
fix FastTreeMap hash <0 and comfortableCapacity size optimize
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user