Browse Source
Merge pull request #5876 from lioncash/truncation
k_affinity_mask: Avoid implicit truncation to bool
pull/15/merge
bunnei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) { |
|
|
|
|