atomic.cpp: fix waiting on multiple variables

Silly bugs are so silly...
This commit is contained in:
Nekotekina 2020-11-14 17:24:16 +03:00
parent 00f877e812
commit 3ac819ee70

View File

@ -1049,7 +1049,7 @@ atomic_wait_engine::wait(const void* data, u32 size, __m128i old_value, u64 time
}
iptr_ext[ext_size] = reinterpret_cast<std::uintptr_t>(e->data) & (~s_ref_mask >> 17);
root_ext[ext_size] = &s_hashtable[iptr & s_hashtable_size];
root_ext[ext_size] = &s_hashtable[iptr_ext[ext_size] % s_hashtable_size];
ext_size++;
}
}