From 7b2d529bdef9f6a5fa2bc3665a6b88cf52b110e1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 May 2017 10:26:36 -0400 Subject: cmBase32: Cast pointer subtraction result to size explicitly The SunPro 5.13 compiler with `-std=c++11` complains otherwise. --- Source/cmBase32.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(end - input); if (remain != 0) { // Temporary source buffer filled up with 0s unsigned char extended[blockSize]; -- cgit v0.12