interchange: fix uninitialized memory bug in cluster placement

Signed-off-by: Alessandro Comodi <[email protected]>
This commit is contained in:
Alessandro Comodi
2021-10-01 11:53:56 +02:00
parent 7550b60069
commit a3ba83fce3
+1 -1
View File
@@ -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;
}