aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2012-07-30 09:23:23 +0000
committerVincent Richard <[email protected]>2012-07-30 09:23:23 +0000
commitf0b1be21dc1c5a764b5fb1a91d15cd00790a8cf5 (patch)
tree756901c9b686747259469407dfe9db90fc7b7e56
parentAdded functions to get messages by UID (IMAP only for now). (diff)
downloadvmime-f0b1be21dc1c5a764b5fb1a91d15cd00790a8cf5.tar.gz
vmime-f0b1be21dc1c5a764b5fb1a91d15cd00790a8cf5.zip
Fixed compilation warning.
-rw-r--r--vmime/utility/parserInputStreamAdapter.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmime/utility/parserInputStreamAdapter.hpp b/vmime/utility/parserInputStreamAdapter.hpp
index c24fa449..861e75bc 100644
--- a/vmime/utility/parserInputStreamAdapter.hpp
+++ b/vmime/utility/parserInputStreamAdapter.hpp
@@ -82,7 +82,7 @@ public:
m_stream->seek(initialPos);
- return (readBytes == 1 ? buffer[0] : 0);
+ return (readBytes == 1 ? buffer[0] : static_cast <value_type>(0));
}
catch (...)
{
@@ -101,7 +101,7 @@ public:
value_type buffer[1];
const size_type readBytes = m_stream->read(buffer, 1);
- return (readBytes == 1 ? buffer[0] : 0);
+ return (readBytes == 1 ? buffer[0] : static_cast <value_type>(0));
}
/** Check whether the bytes following the current position match