Commit b5b62820 authored by Tristan Matthews's avatar Tristan Matthews Committed by Guillaume Roguez

sip_transport_ice: fix compilation for gcc 4.8.2

Refs #61426

Change-Id: I6a06272576b1cabefe5f7cb8b4799fb4b7b1bfd8
parent 25d584bc
......@@ -211,7 +211,7 @@ SipIceTransport::send(pjsip_tx_data *tdata, const pj_sockaddr_t *rem_addr,
ssize_t
SipIceTransport::onRecv(uint8_t* buf, size_t len)
{
auto max_size = std::min(sizeof(rdata.pkt_info.packet) - rdata.pkt_info.len, len);
auto max_size = std::min<size_t>(sizeof(rdata.pkt_info.packet) - rdata.pkt_info.len, len);
std::copy_n(buf, max_size, (uint8_t*)rdata.pkt_info.packet + rdata.pkt_info.len);
rdata.pkt_info.len += max_size;
rdata.pkt_info.zero = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment