diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index e928cfebc9..62762531aa 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -539,7 +539,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 {