diff options
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 6 |
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 = ""; |