commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r4489 - gnuradio/trunk/gnuradio-core/src/lib/io


From: trondeau
Subject: [Commit-gnuradio] r4489 - gnuradio/trunk/gnuradio-core/src/lib/io
Date: Thu, 15 Feb 2007 19:33:23 -0700 (MST)

Author: trondeau
Date: 2007-02-15 19:33:22 -0700 (Thu, 15 Feb 2007)
New Revision: 4489

Modified:
   gnuradio/trunk/gnuradio-core/src/lib/io/gr_udp_sink.cc
Log:
quick fix for std::min error on 64-bit systems

Modified: gnuradio/trunk/gnuradio-core/src/lib/io/gr_udp_sink.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/io/gr_udp_sink.cc      2007-02-15 
20:15:17 UTC (rev 4488)
+++ gnuradio/trunk/gnuradio-core/src/lib/io/gr_udp_sink.cc      2007-02-16 
02:33:22 UTC (rev 4489)
@@ -165,7 +165,7 @@
   #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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]