summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-23 16:26:55 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-12-26 15:23:35 (GMT)
commit0bdd4ebfb8303cc46e4a8bbe16f6c7bcc7108e2a (patch)
tree55e9a2deffd66d0c1b861a640c2739c5088501f9 /Source/cmCTest.cxx
parenta9fae8ac1d952ffd3b54de6082f9729466101bb0 (diff)
downloadCMake-0bdd4ebfb8303cc46e4a8bbe16f6c7bcc7108e2a.zip
CMake-0bdd4ebfb8303cc46e4a8bbe16f6c7bcc7108e2a.tar.gz
CMake-0bdd4ebfb8303cc46e4a8bbe16f6c7bcc7108e2a.tar.bz2
cmCTest: Use size_t for cmsysBase64_Encode return value
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 814c4e0..1362a50 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1701,11 +1701,11 @@ std::string cmCTest::Base64EncodeFile(std::string file)
unsigned char *encoded_buffer
= new unsigned char [ (len * 3) / 2 + 5 ];
- unsigned long rlen
+ size_t const rlen
= cmsysBase64_Encode(file_buffer, len, encoded_buffer, 1);
std::string base64 = "";
- for(unsigned long i = 0; i < rlen; i++)
+ for(size_t i = 0; i < rlen; i++)
{
base64 += encoded_buffer[i];
}
@@ -3193,7 +3193,7 @@ bool cmCTest::CompressString(std::string& str)
unsigned char* base64EncodedBuffer
= new unsigned char[(outSize * 3) / 2];
- unsigned long rlen
+ size_t rlen
= cmsysBase64_Encode(out, strm.total_out, base64EncodedBuffer, 1);
str = "";