summaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-09 20:29:58 -0700
committerJosh Blum <josh@joshknows.com>2010-07-09 20:29:58 -0700
commit09af5cbf7e8518b5e664ecc5138e83a884de6eff (patch)
treef4e03e8a5229dad20797a8f5d2500d3e8b34b69f /host/lib/transport
parentc898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c (diff)
downloaduhd-09af5cbf7e8518b5e664ecc5138e83a884de6eff.tar.gz
uhd-09af5cbf7e8518b5e664ecc5138e83a884de6eff.tar.bz2
uhd-09af5cbf7e8518b5e664ecc5138e83a884de6eff.zip
uhd: define ssize_t for msvc, fixed warning as well
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/vrt_packet_handler.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp
index 221e2bfa6..702d3bfb9 100644
--- a/host/lib/transport/vrt_packet_handler.hpp
+++ b/host/lib/transport/vrt_packet_handler.hpp
@@ -329,7 +329,7 @@ namespace vrt_packet_handler{
);
//commit the samples to the zero-copy interface
- if (send_buffs[i]->commit(if_packet_info.num_packet_words32*sizeof(boost::uint32_t)) < num_samps){
+ if (send_buffs[i]->commit(if_packet_info.num_packet_words32*sizeof(boost::uint32_t)) < ssize_t(num_samps)){
std::cerr << "commit to send buffer returned less than commit size" << std::endl;
}
}