summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Narr the Reg2022-09-21 11:51:31 -0500
committerGravatar Narr the Reg2022-09-21 11:51:31 -0500
commit5a74ced59a159c374071028d431fbf877c819b22 (patch)
treed8b72d36eb80267e294b27abd872d843a8c30b6d /src/core
parentMerge pull request #8849 from Morph1984/parallel-astc (diff)
downloadyuzu-5a74ced59a159c374071028d431fbf877c819b22.tar.gz
yuzu-5a74ced59a159c374071028d431fbf877c819b22.tar.xz
yuzu-5a74ced59a159c374071028d431fbf877c819b22.zip
yuzu: Silence some clang warnings
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/irs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp
index c4b44cbf9..6a3453457 100644
--- a/src/core/hle/service/hid/irs.cpp
+++ b/src/core/hle/service/hid/irs.cpp
@@ -542,7 +542,8 @@ Result IRS::IsIrCameraHandleValid(const Core::IrSensor::IrCameraHandle& camera_h
542 542
543Core::IrSensor::DeviceFormat& IRS::GetIrCameraSharedMemoryDeviceEntry( 543Core::IrSensor::DeviceFormat& IRS::GetIrCameraSharedMemoryDeviceEntry(
544 const Core::IrSensor::IrCameraHandle& camera_handle) { 544 const Core::IrSensor::IrCameraHandle& camera_handle) {
545 ASSERT_MSG(sizeof(StatusManager::device) > camera_handle.npad_id, "invalid npad_id"); 545 const auto npad_id_max_index = static_cast<u8>(sizeof(StatusManager::device));
546 ASSERT_MSG(camera_handle.npad_id < npad_id_max_index, "invalid npad_id");
546 return shared_memory->device[camera_handle.npad_id]; 547 return shared_memory->device[camera_handle.npad_id];
547} 548}
548 549