From 2d6c45469fc88e1d495a32fc202539bfcc7fa3ff Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Wed, 12 Jun 2024 19:37:45 +0200 Subject: [PATCH] clean, not backtracking --- kernel/rtlil.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 06dbfe078..afc586931 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1041,7 +1041,7 @@ namespace { if (it == cell->parameters.end()) error(__LINE__); expected_params.insert(name); - return it->second.as_int(); + return (*it).second.as_int(); } int param_bool(const RTLIL::IdString& name) @@ -1080,7 +1080,7 @@ namespace { auto it = cell->connections_.find(name); if (it == cell->connections_.end()) error(__LINE__); - if (GetSize(it->second) != width) + if (GetSize((*it).second) != width) error(__LINE__); expected_ports.insert(name); }