mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
lockless.h: Fixup lf_array assert
This commit is contained in:
parent
ac849b958f
commit
21f65f087d
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue