From f0b1be21dc1c5a764b5fb1a91d15cd00790a8cf5 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 30 Jul 2012 11:23:23 +0200 Subject: [PATCH] Fixed compilation warning. --- vmime/utility/parserInputStreamAdapter.hpp | 4 ++-- 1 file 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 (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 (0)); } /** Check whether the bytes following the current position match