diff options
| author | 2021-02-04 14:44:11 -0800 | |
|---|---|---|
| committer | 2021-02-04 14:44:11 -0800 | |
| commit | 00cb631b2fd57568c6585273a71ac0d522b1cf63 (patch) | |
| tree | 98d276869512df34374af5f463eceb1cead8b5b2 /src | |
| parent | Merge pull request #5874 from Morph1984/create-keys-dir (diff) | |
| parent | k_affinity_mask: Avoid implicit truncation to bool (diff) | |
| download | yuzu-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.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: | |||
| 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) { |