From a3ba83fce3629fa4c0ec8034b01d112e2c3be78a Mon Sep 17 00:00:00 2001 From: Alessandro Comodi Date: Fri, 1 Oct 2021 11:53:56 +0200 Subject: interchange: fix uninitialized memory bug in cluster placement Signed-off-by: Alessandro Comodi --- fpga_interchange/arch_pack_clusters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpga_interchange/arch_pack_clusters.cc') diff --git a/fpga_interchange/arch_pack_clusters.cc b/fpga_interchange/arch_pack_clusters.cc index acb61917..b003812e 100644 --- a/fpga_interchange/arch_pack_clusters.cc +++ b/fpga_interchange/arch_pack_clusters.cc @@ -99,7 +99,7 @@ static void handle_expansion_node(const Context *ctx, WireId prev_wire, PipId pi NPNR_ASSERT(false); } } else { - if (next_node.state == IN_ROUTING) + if (curr_node.state == IN_ROUTING) next_node.depth++; next_node.state = curr_node.state; } -- cgit v1.2.3