quick fix for std::min error on 64-bit systems
authortrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 16 Feb 2007 02:33:22 +0000 (02:33 +0000)
committertrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 16 Feb 2007 02:33:22 +0000 (02:33 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4489 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/io/gr_udp_sink.cc

index d799262b4b2accc0916e6b938bb5e3be933f7751..7a5d51e0b90c815406ac38618704f0fceef31827 100644 (file)
@@ -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