aha whoopsie

This commit is contained in:
Brady 2023-07-05 11:24:34 -07:00
parent 2408c9b6af
commit ec089cdeaa
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 4 additions and 3 deletions

View File

@ -258,8 +258,8 @@ public final class ToolSet {
private int find(final Block k) {
if (((k) == (null))) return containsNullKey ? n : -(n + 1);
Block curr;
final Block[] key = this.key;
Object curr;
final Object[] key = this.key;
int pos;
// The starting point.
if (((curr = key[pos = (it.unimi.dsi.fastutil.HashCommon.mix(System.identityHashCode(k))) & mask]) == (null))) return -(pos + 1);
@ -275,7 +275,8 @@ public final class ToolSet {
if (pos == this.n) {
this.containsNullKey = true;
}
this.key[pos] = k;
final Object[] key = this.key;
key[pos] = k;
this.value[pos] = v;
if (this.size++ >= this.maxFill) {
this.rehash(HashCommon.arraySize(this.size + 1, this.f));