mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	common_funcs: silence sign-conversion warnings in MakeMagic()
We can trivially resolve these by casting the characters to unsigned values and then shifting the bits.
This commit is contained in:
		
							parent
							
								
									8714d40a77
								
							
						
					
					
						commit
						61f6eaad45
					
				@ -56,7 +56,7 @@ std::string GetLastErrorMsg();
 | 
			
		||||
namespace Common {
 | 
			
		||||
 | 
			
		||||
constexpr u32 MakeMagic(char a, char b, char c, char d) {
 | 
			
		||||
    return a | b << 8 | c << 16 | d << 24;
 | 
			
		||||
    return u32(a) | u32(b) << 8 | u32(c) << 16 | u32(d) << 24;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace Common
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user