diff options
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/rfnoc/node.cpp | 4 |
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()); } |