commit | 8f5cbdcfac11f83ac5912b033a1f41fcc99173f3 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Sun Sep 13 00:59:28 2015 +0200 |
committer | Alex Afanasyev <aa@cs.ucla.edu> | Sat Sep 19 14:03:16 2015 -0700 |
tree | aba05b4f69cb27519f0f76424ba0af1c4f5c070b | |
parent | f2a46228ef2be08a58ee3b49105146ad5e099ca1 [diff] [blame] |
Fix int vs. ssize_t type confusion Plus a typo in the target type of a static_cast. Change-Id: Icb8288baeab20d470c334742d989ffe231fdca7c
diff --git a/tools/ndnputchunks3.cpp b/tools/ndnputchunks3.cpp index ca9475a..6eea0b7 100644 --- a/tools/ndnputchunks3.cpp +++ b/tools/ndnputchunks3.cpp
@@ -40,7 +40,7 @@ do { std::cin.read(buf, MAX_SEG_SIZE); - int got = std::cin.gcount(); + ssize_t got = std::cin.gcount(); if (got > 0) {