Fix corner case on GetMaskFromMinMax where range is 64, doesn't happen in pratice however
This commit is contained in:
parent
9343f8444d
commit
88c57bc2b4
1 changed files with 5 additions and 0 deletions
|
@ -306,6 +306,11 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||||
{
|
{
|
||||||
int range = max - min + 1;
|
int range = max - min + 1;
|
||||||
|
|
||||||
|
if (range == 64)
|
||||||
|
{
|
||||||
|
return -1L;
|
||||||
|
}
|
||||||
|
|
||||||
long mask = (1L << range) - 1;
|
long mask = (1L << range) - 1;
|
||||||
|
|
||||||
return mask << min;
|
return mask << min;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue