summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/lib/io/gr_udp_sink.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/io/gr_udp_sink.cc b/gnuradio-core/src/lib/io/gr_udp_sink.cc
index d799262b4..7a5d51e0b 100644
--- a/gnuradio-core/src/lib/io/gr_udp_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_udp_sink.cc
@@ -165,7 +165,7 @@ gr_udp_sink::work (int noutput_items,
#endif
while(bytes_sent < total_size) {
- bytes_to_send = std::min(d_payload_size, (total_size-bytes_sent));
+ bytes_to_send = std::min((ssize_t)d_payload_size, (total_size-bytes_sent));
r = send(d_socket, (in+bytes_sent), bytes_to_send, 0);
if(r == -1) { // error on send command