diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-06-30 14:44:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-06-30 14:44:35 (GMT) |
commit | 1f5defbdcfd2f9e04267398c581376f57020fcf7 (patch) | |
tree | 497edec3b77023543c30acf369177e81f05b9e8f /Source/kwsys/Base64.c | |
parent | ef76ed76f8a31f706ee675160e5c57c34b608516 (diff) | |
download | CMake-1f5defbdcfd2f9e04267398c581376f57020fcf7.zip CMake-1f5defbdcfd2f9e04267398c581376f57020fcf7.tar.gz CMake-1f5defbdcfd2f9e04267398c581376f57020fcf7.tar.bz2 |
ERR: Remove warnings on Windows
Diffstat (limited to 'Source/kwsys/Base64.c')
-rw-r--r-- | Source/kwsys/Base64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/kwsys/Base64.c b/Source/kwsys/Base64.c index 53d7c46..3a0b17e 100644 --- a/Source/kwsys/Base64.c +++ b/Source/kwsys/Base64.c @@ -62,9 +62,9 @@ static const unsigned char kwsysBase64DecodeTable[256] = }; /*--------------------------------------------------------------------------*/ -static unsigned char kwsysBase64EncodeChar(unsigned char c) +static unsigned char kwsysBase64EncodeChar(int c) { - return kwsysBase64EncodeTable[c]; + return kwsysBase64EncodeTable[(unsigned char)c]; } /*--------------------------------------------------------------------------*/ @@ -176,9 +176,9 @@ int kwsysBase64_Decode3(const unsigned char *src, unsigned char *dest) /* Decode the 3 bytes */ - dest[0] = ((d0 << 2) & 0xFC) | ((d1 >> 4) & 0x03); - dest[1] = ((d1 << 4) & 0xF0) | ((d2 >> 2) & 0x0F); - dest[2] = ((d2 << 6) & 0xC0) | ((d3 >> 0) & 0x3F); + dest[0] = (unsigned char)(((d0 << 2) & 0xFC) | ((d1 >> 4) & 0x03)); + dest[1] = (unsigned char)(((d1 << 4) & 0xF0) | ((d2 >> 2) & 0x0F)); + dest[2] = (unsigned char)(((d2 << 6) & 0xC0) | ((d3 >> 0) & 0x3F)); /* Return the number of bytes actually decoded */ |