From 756365386a9c313c541f959c966909659486b135 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 4 Feb 2021 15:35:44 -0500 Subject: k_affinity_mask: Avoid implicit truncation to bool This can cause compiler warnings. Instead, we can explicitly add a boolean expression around it to naturally turn the result into a bool. --- src/core/hle/kernel/k_affinity_mask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/hle/kernel/k_affinity_mask.h b/src/core/hle/kernel/k_affinity_mask.h index dd73781cd..b906895fc 100644 --- a/src/core/hle/kernel/k_affinity_mask.h +++ b/src/core/hle/kernel/k_affinity_mask.h @@ -27,7 +27,7 @@ public: } [[nodiscard]] constexpr bool GetAffinity(s32 core) const { - return this->mask & GetCoreBit(core); + return (this->mask & GetCoreBit(core)) != 0; } constexpr void SetAffinity(s32 core, bool set) { -- cgit v1.2.3