mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	cxxrtl: backend: don't drop bits 2 and 5 on non-printable format.
This commit is contained in:
		
							parent
							
								
									94913a9f5a
								
							
						
					
					
						commit
						d0da1b56be
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -616,7 +616,7 @@ std::string escape_c_string(const std::string &input)
 | 
			
		|||
				output.push_back('\\');
 | 
			
		||||
			output.push_back(c);
 | 
			
		||||
		} else {
 | 
			
		||||
			char l = c & 0x3, m = (c >> 3) & 0x3, h = (c >> 6) & 0x3;
 | 
			
		||||
			char l = c & 0x7, m = (c >> 3) & 0x7, h = (c >> 6) & 0x3;
 | 
			
		||||
			output.append("\\");
 | 
			
		||||
			output.push_back('0' + h);
 | 
			
		||||
			output.push_back('0' + m);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue