diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh index 2a454f3a0a..99e7ace2d9 100644 --- a/src/systemc/ext/core/sc_port.hh +++ b/src/systemc/ext/core/sc_port.hh @@ -230,7 +230,7 @@ class sc_port_b : public sc_port_base { IF *interface = dynamic_cast(iface); sc_assert(interface); - for (int i = 0; i < _interfaces.size(); i++) { + for (unsigned i = 0; i < _interfaces.size(); i++) { if (interface == _interfaces[i]) { report_error(SC_ID_BIND_IF_TO_PORT_, "interface already bound to port");