aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/node.cpp')
-rw-r--r--host/lib/rfnoc/node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/rfnoc/node.cpp b/host/lib/rfnoc/node.cpp
index ff3df7b76..7cc656a26 100644
--- a/host/lib/rfnoc/node.cpp
+++ b/host/lib/rfnoc/node.cpp
@@ -581,7 +581,7 @@ void node_t::shutdown()
bool node_t::_has_port(const res_source_info& port_info) const
{
return (port_info.type == res_source_info::INPUT_EDGE
- && port_info.instance <= get_num_input_ports())
+ && port_info.instance < get_num_input_ports())
|| (port_info.type == res_source_info::OUTPUT_EDGE
- && port_info.instance <= get_num_output_ports());
+ && port_info.instance < get_num_output_ports());
}