diff options
author | Vincent Richard <[email protected]> | 2005-01-28 17:34:40 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-01-28 17:34:40 +0000 |
commit | fb8f12c6cf62eb2975112001809df6174283284b (patch) | |
tree | 9909cad91e476d08a2abc4165ba0c2cdadd7160a | |
parent | Added possibility to disable protected inheritance (VMIME_NO_PROTECTED_INHERI... (diff) | |
download | vmime-fb8f12c6cf62eb2975112001809df6174283284b.tar.gz vmime-fb8f12c6cf62eb2975112001809df6174283284b.zip |
Fixed bug with signed/unsigned char.
-rw-r--r-- | vmime/parserHelpers.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vmime/parserHelpers.hpp b/vmime/parserHelpers.hpp index c444b6fc..2830e1c6 100644 --- a/vmime/parserHelpers.hpp +++ b/vmime/parserHelpers.hpp @@ -63,7 +63,8 @@ inline const char_t tolower(const char_t c) inline const bool isascii(const char_t c) { - return (c <= 127); + const unsigned int x = static_cast <unsigned int>(c); + return (x <= 127); } @@ -71,7 +72,8 @@ inline const bool isascii(const char_t c) inline const bool isprint(const char_t c) { - return (c >= 0x20 && c <= 0x7E); + const unsigned int x = static_cast <unsigned int>(c); + return (x >= 0x20 && x <= 0x7E); } |