diff options
author | gatecat <gatecat@ds0.me> | 2021-10-01 12:38:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 12:38:05 +0100 |
commit | 5ae9eeba18136ac9511e0c959448b9e6f2e1e3a3 (patch) | |
tree | 24f66da6fabd084211e7b01027d084ab96c85961 /fpga_interchange/arch_pack_clusters.cc | |
parent | 7550b60069facbca9e4292ad2753f8e317a5d681 (diff) | |
parent | a3ba83fce3629fa4c0ec8034b01d112e2c3be78a (diff) | |
download | nextpnr-5ae9eeba18136ac9511e0c959448b9e6f2e1e3a3.tar.gz nextpnr-5ae9eeba18136ac9511e0c959448b9e6f2e1e3a3.tar.bz2 nextpnr-5ae9eeba18136ac9511e0c959448b9e6f2e1e3a3.zip |
Merge pull request #833 from antmicro/interchange-fix-uninitialized-memory-bug
interchange: fix uninitialized memory bug in cluster placement
Diffstat (limited to 'fpga_interchange/arch_pack_clusters.cc')
-rw-r--r-- | fpga_interchange/arch_pack_clusters.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |