mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	process: Get rid of warnings
Sign mismatches and "forcing value to bool" warnings.
This commit is contained in:
		
							parent
							
								
									e83bc5b7ee
								
							
						
					
					
						commit
						150e700729
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -27,7 +27,7 @@ SharedPtr<Process> Process::Create(std::string name, u64 program_id) { | |||
| } | ||||
| 
 | ||||
| void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) { | ||||
|     for (int i = 0; i < len; ++i) { | ||||
|     for (size_t i = 0; i < len; ++i) { | ||||
|         u32 descriptor = kernel_caps[i]; | ||||
|         u32 type = descriptor >> 20; | ||||
| 
 | ||||
|  | @ -64,8 +64,8 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) { | |||
|             AddressMapping mapping; | ||||
|             mapping.address = descriptor << 12; | ||||
|             mapping.size = (end_desc << 12) - mapping.address; | ||||
|             mapping.writable = descriptor & (1 << 20); | ||||
|             mapping.unk_flag = end_desc & (1 << 20); | ||||
|             mapping.writable = (descriptor & (1 << 20)) != 0; | ||||
|             mapping.unk_flag = (end_desc & (1 << 20)) != 0; | ||||
| 
 | ||||
|             address_mappings.push_back(mapping); | ||||
|         } else if ((type & 0xFFF) == 0xFFE) { // 0x000F
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue