mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-05 07:10:26 +00:00
cmBase32: Cast pointer subtraction result to size explicitly
The SunPro 5.13 compiler with `-std=c++11` complains otherwise.
This commit is contained in:
@@ -58,7 +58,7 @@ std::string cmBase32Encoder::encodeString(const unsigned char* input,
|
|||||||
input += blockSize;
|
input += blockSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t remain(end - input);
|
size_t remain = static_cast<size_t>(end - input);
|
||||||
if (remain != 0) {
|
if (remain != 0) {
|
||||||
// Temporary source buffer filled up with 0s
|
// Temporary source buffer filled up with 0s
|
||||||
unsigned char extended[blockSize];
|
unsigned char extended[blockSize];
|
||||||
|
|||||||
Reference in New Issue
Block a user