mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-25 03:40:22 +01:00
[meta] fix building with clang 21.1.4 (#2839)
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2839 Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Co-committed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
This commit is contained in:
parent
683c2834aa
commit
0be29d2947
3 changed files with 9 additions and 3 deletions
|
|
@ -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-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
|
@ -539,7 +542,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClearDpc(DpcFlag flag) {
|
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 {
|
u8 GetDpc() const {
|
||||||
|
|
|
||||||
|
|
@ -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-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
|
@ -112,7 +115,7 @@ void NintendoFigurineDatabase::CleanDatabase() {
|
||||||
|
|
||||||
void NintendoFigurineDatabase::CorruptCrc() {
|
void NintendoFigurineDatabase::CorruptCrc() {
|
||||||
crc = GenerateDatabaseCrc();
|
crc = GenerateDatabaseCrc();
|
||||||
crc = ~crc;
|
crc = static_cast<u16>(~crc);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result NintendoFigurineDatabase::CheckIntegrity() {
|
Result NintendoFigurineDatabase::CheckIntegrity() {
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ Result NpadVibration::SetSettingsService(
|
||||||
Result NpadVibration::SetVibrationMasterVolume(f32 master_volume) {
|
Result NpadVibration::SetVibrationMasterVolume(f32 master_volume) {
|
||||||
std::scoped_lock lock{mutex};
|
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;
|
return ResultVibrationStrengthOutOfRange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue