mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 06:13:00 +00:00
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.
This commit is contained in:
parent
cde532cc52
commit
756365386a
|
@ -27,7 +27,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] constexpr bool GetAffinity(s32 core) const {
|
[[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) {
|
constexpr void SetAffinity(s32 core, bool set) {
|
||||||
|
|
Loading…
Reference in a new issue