mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 02:38:37 -06:00
Solaris: Rename local variable to avoid conflict with system headers
This commit is contained in:
@@ -55,15 +55,15 @@ std::string cmBase32Encoder::encodeString(unsigned char const* input,
|
|||||||
size_t remain = static_cast<size_t>(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 padded[blockSize];
|
||||||
for (size_t ii = 0; ii != remain; ++ii) {
|
for (size_t ii = 0; ii != remain; ++ii) {
|
||||||
extended[ii] = input[ii];
|
padded[ii] = input[ii];
|
||||||
}
|
}
|
||||||
for (size_t ii = remain; ii != blockSize; ++ii) {
|
for (size_t ii = remain; ii != blockSize; ++ii) {
|
||||||
extended[ii] = 0;
|
padded[ii] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Base32Encode5(extended, buffer);
|
Base32Encode5(padded, buffer);
|
||||||
size_t numPad(0);
|
size_t numPad(0);
|
||||||
switch (remain) {
|
switch (remain) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user