summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-08 14:26:36 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-08 14:26:36 (GMT)
commit7b2d529bdef9f6a5fa2bc3665a6b88cf52b110e1 (patch)
tree6c294e861b619528d4595d201a2abd9fe824ee61 /Source
parent22d0a83a4cc2188119e008ed346a10f7b0b32f8e (diff)
downloadCMake-7b2d529bdef9f6a5fa2bc3665a6b88cf52b110e1.zip
CMake-7b2d529bdef9f6a5fa2bc3665a6b88cf52b110e1.tar.gz
CMake-7b2d529bdef9f6a5fa2bc3665a6b88cf52b110e1.tar.bz2
cmBase32: Cast pointer subtraction result to size explicitly
The SunPro 5.13 compiler with `-std=c++11` complains otherwise.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmBase32.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmBase32.cxx b/Source/cmBase32.cxx
index 091d619..1dac212 100644
--- a/Source/cmBase32.cxx
+++ b/Source/cmBase32.cxx
@@ -58,7 +58,7 @@ std::string cmBase32Encoder::encodeString(const unsigned char* input,
input += blockSize;
}
- size_t remain(end - input);
+ size_t remain = static_cast<size_t>(end - input);
if (remain != 0) {
// Temporary source buffer filled up with 0s
unsigned char extended[blockSize];