Merge pull request #833 from antmicro/interchange-fix-uninitialized-memory-bug

interchange: fix uninitialized memory bug in cluster placement
This commit is contained in:
gatecat 2021-10-01 12:38:05 +01:00 committed by GitHub
commit 5ae9eeba18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}