mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-31 23:06:43 +08:00 
			
		
		
		
	Merge pull request #5876 from lioncash/truncation
k_affinity_mask: Avoid implicit truncation to bool
This commit is contained in:
		
						commit
						00cb631b2f
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user