summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2021-02-04 14:44:11 -0800
committerGravatar GitHub2021-02-04 14:44:11 -0800
commit00cb631b2fd57568c6585273a71ac0d522b1cf63 (patch)
tree98d276869512df34374af5f463eceb1cead8b5b2 /src
parentMerge pull request #5874 from Morph1984/create-keys-dir (diff)
parentk_affinity_mask: Avoid implicit truncation to bool (diff)
downloadyuzu-00cb631b2fd57568c6585273a71ac0d522b1cf63.tar.gz
yuzu-00cb631b2fd57568c6585273a71ac0d522b1cf63.tar.xz
yuzu-00cb631b2fd57568c6585273a71ac0d522b1cf63.zip
Merge pull request #5876 from lioncash/truncation
k_affinity_mask: Avoid implicit truncation to 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) {