mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fixed next_token()
This commit is contained in:
		
							parent
							
								
									54bf3a95dd
								
							
						
					
					
						commit
						20d85f20db
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -87,12 +87,12 @@ std::string next_token(std::string &text, const char *sep) | |||
| { | ||||
| 	size_t pos_begin = text.find_first_not_of(sep); | ||||
| 
 | ||||
| 	if (pos_begin == string::npos) | ||||
| 	if (pos_begin == std::string::npos) | ||||
| 		pos_begin = text.size(); | ||||
| 
 | ||||
| 	size_t pos_end = text.find_first_of(sep, pos_begin); | ||||
| 
 | ||||
| 	if (pos_end == string::npos) | ||||
| 	if (pos_end == std::string::npos) | ||||
| 		pos_end = text.size(); | ||||
| 
 | ||||
| 	std::string token = text.substr(pos_begin, pos_end-pos_begin); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue