GCC warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-02-26 12:17:58 +02:00
parent 81ac6c75a7
commit 01612c4c7c

View File

@ -528,7 +528,7 @@ bool QmuParserTokenReader::IsArgSep ( token_type &a_Tok )
bool QmuParserTokenReader::IsEOF ( token_type &a_Tok ) bool QmuParserTokenReader::IsEOF ( token_type &a_Tok )
{ {
// check for EOF // check for EOF
if ( m_strFormula.data()[m_iPos] == false /*|| szFormula[m_iPos] == '\n'*/ ) if ( m_iPos >= m_strFormula.size())
{ {
if ( m_iSynFlags & noEND ) if ( m_iSynFlags & noEND )
{ {