summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
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;