Skip to content

Commit

Permalink
Merge pull request #142 from polycube-network/fix/compilation_warnings
Browse files Browse the repository at this point in the history
fix two small compilation warnings
  • Loading branch information
frisso committed Jun 7, 2019
2 parents 4cde2de + d509182 commit b50b84c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/pcn-k8switch/src/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void Service::updateKernelServiceMap() {
// In doesn't indicate a real backend
backend value{
.ip = utils::ip_string_to_be_uint(getVip()),
.port = consistent_array.size(),
.port = uint8_t(consistent_array.size()),
.proto = 0,
};
// logger()->trace("Setting Service map with key: {0} and value: {1}",
Expand Down
2 changes: 1 addition & 1 deletion src/services/pcn-nat/src/Nat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ std::shared_ptr<NattingTable> Nat::getNattingTable(
.dst_ip = utils::ip_string_to_be_uint(internalDst),
.src_port = htons(internalSport),
.dst_port = htons(internalDport),
.proto = std::stol(proto),
.proto = uint8_t(std::stol(proto)),
};

st_v value = table.get(map_key);
Expand Down

0 comments on commit b50b84c

Please sign in to comment.