trunk/branch integration: fix warning

This commit is contained in:
Marian Krivos 2011-08-22 16:24:25 +00:00
parent 31c6d3e855
commit 090d93dc6e

View File

@ -117,7 +117,7 @@ int LineEndingConverterStreamBuf::writeToDevice(char c)
{
poco_assert_dbg (_pOstr);
if (c == '\r' || c == '\n' && _lastChar != '\r')
if (c == '\r' || (c == '\n' && _lastChar != '\r'))
_pOstr->write(_newLine.data(), (std::streamsize) _newLine.length());
if (c != '\n' && c != '\r')
_pOstr->put(c);