summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-08 15:34:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-08 15:34:12 (GMT)
commitf5fe20dc12641ae58b9716aba98ccbaf52303113 (patch)
treef46f422237d324672a77b595c8fa7529adaf2965 /Source/cmSystemTools.cxx
parentaae8dca79769583439661418a91c6ed3e884024d (diff)
downloadCMake-f5fe20dc12641ae58b9716aba98ccbaf52303113.zip
CMake-f5fe20dc12641ae58b9716aba98ccbaf52303113.tar.gz
CMake-f5fe20dc12641ae58b9716aba98ccbaf52303113.tar.bz2
Fix some warnings
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index f18685f..62603d6 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1819,10 +1819,10 @@ bool cmSystemTools::CreateTar(const char* outFileName,
return false;
}
char buff[16384];
- int len = fread(buff, 1, sizeof(buff), file);
+ size_t len = fread(buff, 1, sizeof(buff), file);
while (len > 0)
{
- int wlen = archive_write_data(a, buff, len);
+ size_t wlen = archive_write_data(a, buff, len);
if(wlen != len)
{
cmOStringStream error;