Fixed compilation warning.

This commit is contained in:
Vincent Richard 2012-07-30 11:23:23 +02:00
parent a68cebf12a
commit f0b1be21dc

View File

@ -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