mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	kernel/handle_table: Resolve truncation warnings
Avoids implicit truncation warnings from u32 -> u16 (the truncation is desirable behavior here).
This commit is contained in:
		
							parent
							
								
									c07987dfab
								
							
						
					
					
						commit
						0220862ba5
					
				@ -14,11 +14,11 @@
 | 
			
		||||
namespace Kernel {
 | 
			
		||||
namespace {
 | 
			
		||||
constexpr u16 GetSlot(Handle handle) {
 | 
			
		||||
    return handle >> 15;
 | 
			
		||||
    return static_cast<u16>(handle >> 15);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
constexpr u16 GetGeneration(Handle handle) {
 | 
			
		||||
    return handle & 0x7FFF;
 | 
			
		||||
    return static_cast<u16>(handle & 0x7FFF);
 | 
			
		||||
}
 | 
			
		||||
} // Anonymous namespace
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user