1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

lockless.h: Fixup lf_array assert

This commit is contained in:
Elad 2024-11-18 16:18:27 +02:00
parent ac849b958f
commit 21f65f087d

View File

@ -49,8 +49,8 @@ public:
if (!next) if (!next)
{ {
// Do not allow access beyond one element more at a time // Do not allow access beyond many element more at a time
ensure(!installed && index - i == N); ensure(!installed && index - i < N * 2);
installed = true; installed = true;
@ -78,7 +78,7 @@ public:
{ {
lf_array* _this = this; lf_array* _this = this;
using return_t = decltype(func(std::declval<T&>())); using return_t = std::invoke_result_t<F, T&>;
while (_this) while (_this)
{ {