mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-25 01:06:02 +00:00
Return false on overflow
This commit is contained in:
parent
6c28be13a8
commit
311f1fbba5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue