mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-02 11:40:47 -07:00
Return false on overflow
This commit is contained in:
@ -45,9 +45,9 @@ namespace ARMeilleure.Common
|
|||||||
_freeHint = _allocated.FindFirstUnset();
|
_freeHint = _allocated.FindFirstUnset();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_freeHint < _table.Length)
|
if (_freeHint >= 0 && _freeHint < _table.Length)
|
||||||
{
|
{
|
||||||
index = checked(_freeHint++);
|
index = _freeHint++;
|
||||||
|
|
||||||
_allocated.Set(index);
|
_allocated.Set(index);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user