forked from qt-creator/qt-creator
C++: Fix compiler warning
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data Change-Id: I3a8203c1662cfba36ebe28ad3bd1b5ff46b55dfe Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
bfd3b88bb8
commit
173aed9b8e
@@ -307,7 +307,7 @@ recognize:
|
||||
|
||||
if (currentExpanded) {
|
||||
QTC_ASSERT(macroOffset != -1 && macroLength != -1, continue);
|
||||
_expansionPositions[_tokens->size() - 1] = std::make_pair(macroOffset, macroLength);
|
||||
_expansionPositions[int(_tokens->size()) - 1] = std::make_pair(macroOffset, macroLength);
|
||||
}
|
||||
} while (tk.kind());
|
||||
|
||||
|
Reference in New Issue
Block a user