mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Do not check for 1 and 0 only
This commit is contained in:
		
							parent
							
								
									b1e3bc059c
								
							
						
					
					
						commit
						2f93579bd1
					
				
					 1 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -203,12 +203,6 @@ void VerificImporter::import_attributes(dict<RTLIL::IdString, RTLIL::Const> &att
 | 
			
		|||
				auto p = v;
 | 
			
		||||
				if (p) {
 | 
			
		||||
					if (*p != '"') {
 | 
			
		||||
						auto *q = p;
 | 
			
		||||
						for (; *q != '\0'; q++)
 | 
			
		||||
							if (*q != '0' && *q != '1') {
 | 
			
		||||
								p = nullptr;
 | 
			
		||||
								break;
 | 
			
		||||
							}
 | 
			
		||||
						if (p != nullptr)
 | 
			
		||||
							attributes.emplace(stringf("\\enum_value_%s", p), RTLIL::escape_id(k));
 | 
			
		||||
					} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue