Browse Source

Merge pull request #5876 from lioncash/truncation

k_affinity_mask: Avoid implicit truncation to bool
bunnei 5 năm trước cách đây
mục cha
commit
00cb631b2f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/core/hle/kernel/k_affinity_mask.h

+ 1 - 1
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) {