Skip to content

Commit

Permalink
Merge pull request #1594 from donaldsharp/32_bit_fuckery
Browse files Browse the repository at this point in the history
bgpd: fix failing to compile on 32 bit systems
  • Loading branch information
pguibert6WIND authored Jan 4, 2018
2 parents 3cace9d + 8356e9b commit 9f465cc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -5068,9 +5068,10 @@ DEFPY(bgp_network,
}

return bgp_static_set(vty, no, address_str ? addr_prefix_str:prefix_str,
AFI_IP, bgp_node_safi(vty),
map_name, backdoor?1:0,
label_index ? label_index:BGP_INVALID_LABEL_INDEX);
AFI_IP, bgp_node_safi(vty),
map_name, backdoor?1:0,
label_index ?
(uint32_t)label_index : BGP_INVALID_LABEL_INDEX);
}

DEFPY(ipv6_bgp_network,
Expand All @@ -5086,8 +5087,9 @@ DEFPY(ipv6_bgp_network,
"Label index value\n")
{
return bgp_static_set(vty, no, prefix_str, AFI_IP6,
bgp_node_safi(vty), map_name, 0,
label_index ? label_index:BGP_INVALID_LABEL_INDEX);
bgp_node_safi(vty), map_name, 0,
label_index ?
(uint32_t)label_index : BGP_INVALID_LABEL_INDEX);
}

/* Aggreagete address:
Expand Down

0 comments on commit 9f465cc

Please sign in to comment.