mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
lockless.h: Fixup lf_array assert
This commit is contained in:
parent
a1c6787acd
commit
2b32cbb28f
1 changed files with 3 additions and 3 deletions
|
@ -49,8 +49,8 @@ public:
|
|||
|
||||
if (!next)
|
||||
{
|
||||
// Do not allow access beyond one element more at a time
|
||||
ensure(!installed && index - i == N);
|
||||
// Do not allow access beyond many element more at a time
|
||||
ensure(!installed && index - i < N * 2);
|
||||
|
||||
installed = true;
|
||||
|
||||
|
@ -78,7 +78,7 @@ public:
|
|||
{
|
||||
lf_array* _this = this;
|
||||
|
||||
using return_t = decltype(func(std::declval<T&>()));
|
||||
using return_t = std::invoke_result_t<F, T&>;
|
||||
|
||||
while (_this)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue