mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	memlib: Fix ubsan
This commit is contained in:
		
							parent
							
								
									88eb83a0c3
								
							
						
					
					
						commit
						56db7702b8
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -878,7 +878,7 @@ struct Parser { | |||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 				var.clk_en = find_single_cap(pdef.clken, cram.options, portopts, "clken"); | ||||
| 				var.clk_en = find_single_cap(pdef.clken, cram.options, portopts, "clken") != nullptr; | ||||
| 			} | ||||
| 			const PortWidthDef *wdef = find_single_cap(pdef.width, cram.options, portopts, "width"); | ||||
| 			if (wdef) { | ||||
|  |  | |||
|  | @ -109,7 +109,7 @@ struct PortVariant { | |||
| 	PortKind kind; | ||||
| 	int clk_shared; | ||||
| 	ClkPolKind clk_pol; | ||||
| 	bool clk_en; | ||||
| 	bool clk_en = false; | ||||
| 	bool width_tied; | ||||
| 	int min_wr_wide_log2; | ||||
| 	int max_wr_wide_log2; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue