diff options
author | Vincent Richard <[email protected]> | 2012-11-29 21:33:04 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2012-11-29 21:33:31 +0000 |
commit | 71f06fab915f20d10b4b97d6c927087228b51f6e (patch) | |
tree | 399177abb33447877be7e80c545c9f16ada1e078 /src/utility/encoder/uuEncoder.cpp | |
parent | Better handling of SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE. Sockets on Windo... (diff) | |
download | vmime-71f06fab915f20d10b4b97d6c927087228b51f6e.tar.gz vmime-71f06fab915f20d10b4b97d6c927087228b51f6e.zip |
Trivial 64-bit warning fixes.
Diffstat (limited to 'src/utility/encoder/uuEncoder.cpp')
-rw-r--r-- | src/utility/encoder/uuEncoder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utility/encoder/uuEncoder.cpp b/src/utility/encoder/uuEncoder.cpp index 0ddfbac6..4b4d83d8 100644 --- a/src/utility/encoder/uuEncoder.cpp +++ b/src/utility/encoder/uuEncoder.cpp @@ -52,15 +52,15 @@ const std::vector <string> uuEncoder::getAvailableProperties() const // This is the character encoding function to make a character printable -static inline unsigned char UUENCODE(const unsigned char c) +static inline unsigned char UUENCODE(const unsigned long c) { - return ((c & 077) + ' '); + return static_cast <unsigned char>((c & 077) + ' '); } // Single character decoding -static inline unsigned char UUDECODE(const unsigned char c) +static inline unsigned char UUDECODE(const unsigned long c) { - return ((c - ' ') & 077); + return static_cast <unsigned char>((c - ' ') & 077); } |