mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Resolve C4101 warning
and catch logic_error instead of exception, as stoll should only throw std::invalid_argument and std::out_of_range, and both inherit from it.
This commit is contained in:
		
							parent
							
								
									64062162c6
								
							
						
					
					
						commit
						1e6507d792
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -262,7 +262,7 @@ void Config::ReadValues() { | |||
| 
 | ||||
|         try { | ||||
|             days = std::stoll(day_string); | ||||
|         } catch (std::exception& e) { | ||||
|         } catch (std::logic_error&) { | ||||
|             LOG_ERROR(Config, "Failed to parse days in init_time_offset. Using 0"); | ||||
|             days = 0; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue