diff options
author | Marco Carvalho <marcolucio27@gmail.com> | 2023-06-09 06:23:44 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 11:23:44 +0200 |
commit | 86de288142188341a98fab6d132152077b391fbd (patch) | |
tree | f3f14fbcbe4013ce0cbf919c90df13ef12404062 /src/Ryujinx.HLE/HOS/Kernel/Process/KHandleTable.cs | |
parent | f35aa8e9d6cbef59e287fc338932e6d4a78cfc0f (diff) |
Removing shift by 0 (#5249)1.1.875
* Integral numbers should not be shifted by zero or more than their number of bits-1
* more
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Kernel/Process/KHandleTable.cs')
-rw-r--r-- | src/Ryujinx.HLE/HOS/Kernel/Process/KHandleTable.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.HLE/HOS/Kernel/Process/KHandleTable.cs b/src/Ryujinx.HLE/HOS/Kernel/Process/KHandleTable.cs index 50f04e90..6dd7e5b7 100644 --- a/src/Ryujinx.HLE/HOS/Kernel/Process/KHandleTable.cs +++ b/src/Ryujinx.HLE/HOS/Kernel/Process/KHandleTable.cs @@ -137,7 +137,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process public void CancelHandleReservation(int handle) { - int index = (handle >> 0) & 0x7fff; + int index = handle & 0x7fff; lock (_table) { |