mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-04 23:35:12 +01:00
Fix bitmask check for event IDs > 32 in Ctrl::SyncpointFreeEventBatch
Doing 1 << 32 would result in an integer overflow rather than the desired behaviour of checking a bit, make 1 64 bit to present that.
This commit is contained in:
parent
debab7c9c7
commit
34bf413661
@ -225,7 +225,7 @@ namespace skyline::service::nvdrv::device::nvhost {
|
||||
std::lock_guard lock(syncpointEventMutex);
|
||||
|
||||
for (u32 i{}; i < std::numeric_limits<u64>::digits; i++)
|
||||
if (bitmask & (1 << i))
|
||||
if (bitmask & (1ULL << i))
|
||||
if (auto freeErr{SyncpointFreeEventLocked(i)}; freeErr != PosixResult::Success)
|
||||
err = freeErr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user