aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r--gui/designwidget.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index 457b7de4..f856b5f6 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -306,7 +306,7 @@ void DesignWidget::newContext(Context *ctx)
{
TreeModel::ElementXYRoot<WireId>::ElementMap wireMap;
#ifdef ARCH_ICE40
- for (int i = 0; i < ctx->chip_info->num_wires; i++) {
+ for (int i = 0; i < int(ctx->chip_info->wire_data.size()); i++) {
const auto wire = &ctx->chip_info->wire_data[i];
WireId wireid;
wireid.index = i;