VERY experimental Nintendo Switch 2 emulator
C++
[meta] fix building with clang 21.1.4 (#2839)
Caio Oliveira0be29d29475d
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.hindex e928cfebc9..6bcb21b4a1 100644--- a/src/core/hle/kernel/k_thread.h+++ b/src/core/hle/kernel/k_thread.h@@ -1,3 +1,6 @@+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later@@ -539,7 +542,7 @@ public:}void ClearDpc(DpcFlag flag) {- this->GetStackParameters().dpc_flags &= ~static_cast<u8>(flag);+ this->GetStackParameters().dpc_flags &= static_cast<u8>(~static_cast<u8>(flag));}u8 GetDpc() const {diff --git a/src/core/hle/service/mii/mii_database.cpp b/src/core/hle/service/mii/mii_database.cppindex 3803e58e28..d1f4e1f198 100644--- a/src/core/hle/service/mii/mii_database.cpp+++ b/src/core/hle/service/mii/mii_database.cpp@@ -1,3 +1,6 @@+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later@@ -112,7 +115,7 @@ void NintendoFigurineDatabase::CleanDatabase() {void NintendoFigurineDatabase::CorruptCrc() {crc = GenerateDatabaseCrc();- crc = ~crc;+ crc = static_cast<u16>(~crc);}Result NintendoFigurineDatabase::CheckIntegrity() {diff --git a/src/hid_core/resources/npad/npad_vibration.cpp b/src/hid_core/resources/npad/npad_vibration.cppindex f70876360f..330c21ea9d 100644--- a/src/hid_core/resources/npad/npad_vibration.cpp+++ b/src/hid_core/resources/npad/npad_vibration.cpp@@ -39,7 +39,7 @@ Result NpadVibration::SetSettingsService(Result NpadVibration::SetVibrationMasterVolume(f32 master_volume) {std::scoped_lock lock{mutex};- if (master_volume < 0.0f && master_volume > 1.0f) {+ if (master_volume < 0.0f || master_volume > 1.0f) {return ResultVibrationStrengthOutOfRange;}