diff options
author | Lioncash <mathew1800@gmail.com> | 2021-02-04 15:35:44 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-02-04 15:35:46 -0500 |
commit | 756365386a9c313c541f959c966909659486b135 (patch) | |
tree | 4b5a96cc2678a7c98b8a4f36a06c61f0853804fc /src | |
parent | cde532cc52656c0ba1529363eff8bc3bf7d30b94 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/k_affinity_mask.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |