Skip to content

Commit

Permalink
update size_t to uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Shu0T1an ChenG committed Jul 22, 2017
1 parent cb8e1bf commit 01e1ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void PortsOrch::removeDefaultVlanMembers()
}

/* Remove VLAN members in default VLAN */
for (size_t i = 0; i < attr.value.objlist.count; i++)
for (uint32_t i = 0; i < attr.value.objlist.count; i++)
{
status = sai_vlan_api->remove_vlan_member(vlan_member_list[i]);
if (status != SAI_STATUS_SUCCESS)
Expand Down Expand Up @@ -199,7 +199,7 @@ void PortsOrch::removeDefaultBridgePorts()
auto bridge_port_count = attr.value.objlist.count;

/* Remove SAI_BRIDGE_PORT_TYPE_PORT bridge ports in default 1Q bridge */
for (size_t i = 0; i < bridge_port_count; i++)
for (uint32_t i = 0; i < bridge_port_count; i++)
{
attr.id = SAI_BRIDGE_PORT_ATTR_TYPE;
attr.value.s32 = SAI_NULL_OBJECT_ID;
Expand Down

0 comments on commit 01e1ce7

Please sign in to comment.