forked from qt-creator/qt-creator
Fix excessive warnings by MSVC 2013 64bit about size_t->int truncation
C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data Change-Id: I91979c685bbbd84359f7f4e19911a21a408f5d23 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -96,7 +96,7 @@ bool SearchFunction::visit(CPlusPlus::Function * f)
|
||||
if (const CPlusPlus::Name *name = f->name())
|
||||
if (const CPlusPlus::Identifier *id = name->identifier())
|
||||
if (id->size() == m_length)
|
||||
if (!qstrncmp(m_name, id->chars(), m_length))
|
||||
if (!qstrncmp(m_name, id->chars(), uint(m_length)))
|
||||
m_matches.push_back(f);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user