diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index e928cfebc..32cf4370c 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -1,4 +1,5 @@ // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project +// SPDX-FileCopyrightText: 2025 citron Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once @@ -539,7 +540,7 @@ public: } void ClearDpc(DpcFlag flag) { - this->GetStackParameters().dpc_flags &= ~static_cast(flag); + this->GetStackParameters().dpc_flags &= static_cast(~static_cast(flag)); } u8 GetDpc() const {