summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2021-02-04 15:35:44 -0500
committerGravatar Lioncash2021-02-04 15:35:46 -0500
commit756365386a9c313c541f959c966909659486b135 (patch)
tree4b5a96cc2678a7c98b8a4f36a06c61f0853804fc /src
parentMerge pull request #5863 from ogniK5377/disable-reverb (diff)
downloadyuzu-756365386a9c313c541f959c966909659486b135.tar.gz
yuzu-756365386a9c313c541f959c966909659486b135.tar.xz
yuzu-756365386a9c313c541f959c966909659486b135.zip
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 '')
-rw-r--r--src/core/hle/kernel/k_affinity_mask.h2
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:
27 } 27 }
28 28
29 [[nodiscard]] constexpr bool GetAffinity(s32 core) const { 29 [[nodiscard]] constexpr bool GetAffinity(s32 core) const {
30 return this->mask & GetCoreBit(core); 30 return (this->mask & GetCoreBit(core)) != 0;
31 } 31 }
32 32
33 constexpr void SetAffinity(s32 core, bool set) { 33 constexpr void SetAffinity(s32 core, bool set) {