Skip to content

Commit

Permalink
casted enums to untyped during comparison on line 138
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrick87 committed Nov 11, 2023
1 parent a38f62e commit d277db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal_modules/roc_address/protocol_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ bool ProtocolMap::get_supported_interfaces(core::Array<Interface>& interface_arr
interface_array.clear();
bool interfaces_exist = false;

for (int x = Iface_Consolidated + 1; x != Iface_Max; x++) {
for (unsigned x = (unsigned)Iface_Consolidated + 1; x != (unsigned)Iface_Max; x++) {
for (size_t y = 0; y < MaxProtos; y++) {
if (x == protos_[y].iface) {
if (x == (unsigned)protos_[y].iface) {
interface_array.push_back(protos_[y].iface);
interfaces_exist = true;
break;
Expand Down

0 comments on commit d277db0

Please sign in to comment.