summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authortrondeau2007-02-16 02:33:22 +0000
committertrondeau2007-02-16 02:33:22 +0000
commitd37f0144d85d17d8a7d5dbda6200a24484aacde8 (patch)
treee5959e858622b98311bf9309f172ad8c5d7b1d5c /gnuradio-core/src
parent47f550e25ae7dfca6798c42bb89faca4c032c03a (diff)
downloadgnuradio-d37f0144d85d17d8a7d5dbda6200a24484aacde8.tar.gz
gnuradio-d37f0144d85d17d8a7d5dbda6200a24484aacde8.tar.bz2
gnuradio-d37f0144d85d17d8a7d5dbda6200a24484aacde8.zip
quick fix for std::min error on 64-bit systems
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4489 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-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