Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/16286

Change subject: systemc: Change the type of a loop counter to avoid a warning.
......................................................................

systemc: Change the type of a loop counter to avoid a warning.

g++ complained about comparing an signed int loop counter with the
return value of a size() function. This change changes it to an
unsigned to make g++ happy/quiet.

Change-Id: I28fa79c448465b24d77b5623860f9b991f313561
---
M src/systemc/ext/core/sc_port.hh
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh
index 2a454f3..99e7ace 100644
--- a/src/systemc/ext/core/sc_port.hh
+++ b/src/systemc/ext/core/sc_port.hh
@@ -230,7 +230,7 @@
     {
         IF *interface = dynamic_cast<IF *>(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");

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16286
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I28fa79c448465b24d77b5623860f9b991f313561
Gerrit-Change-Number: 16286
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to