mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Fix getopt on systems where char is unsigned by default
This commit is contained in:
		
							parent
							
								
									1fbda5518e
								
							
						
					
					
						commit
						224142a57e
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -221,9 +221,9 @@ int main(int argc, char** argv) { | |||
|     }; | ||||
| 
 | ||||
|     while (optind < argc) { | ||||
|         char arg = getopt_long(argc, argv, "g:i:m:r:p:fhv", long_options, &option_index); | ||||
|         int arg = getopt_long(argc, argv, "g:i:m:r:p:fhv", long_options, &option_index); | ||||
|         if (arg != -1) { | ||||
|             switch (arg) { | ||||
|             switch (static_cast<char>(arg)) { | ||||
|             case 'g': | ||||
|                 errno = 0; | ||||
|                 gdb_port = strtoul(optarg, &endarg, 0); | ||||
|  |  | |||
|  | @ -170,9 +170,9 @@ int main(int argc, char** argv) { | |||
|     }; | ||||
| 
 | ||||
|     while (optind < argc) { | ||||
|         char arg = getopt_long(argc, argv, "n:d:p:m:w:g:u:t:a:i:hv", long_options, &option_index); | ||||
|         int arg = getopt_long(argc, argv, "n:d:p:m:w:g:u:t:a:i:hv", long_options, &option_index); | ||||
|         if (arg != -1) { | ||||
|             switch (arg) { | ||||
|             switch (static_cast<char>(arg)) { | ||||
|             case 'n': | ||||
|                 room_name.assign(optarg); | ||||
|                 break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue