fix compiler warnings

This commit is contained in:
Le Tan 2018-07-20 07:15:11 +08:00
parent 21e5aac024
commit 83f1909e84

View File

@ -374,7 +374,7 @@ void PegMarkdownHighlighter::updateSingleFormatBlocks(const QVector<QVector<HLUn
const HLUnit &unit = units[0]; const HLUnit &unit = units[0];
if (unit.start == 0 && unit.length > 0) { if (unit.start == 0 && unit.length > 0) {
QTextBlock block = m_doc->findBlockByNumber(i); QTextBlock block = m_doc->findBlockByNumber(i);
if (block.length() - 1 == unit.length) { if (block.length() - 1 == (int)unit.length) {
m_singleFormatBlocks.insert(i); m_singleFormatBlocks.insert(i);
} }
} }