forked from qt-creator/qt-creator
QmlProfiler: Fix compile warning on Windows.
c:\dev\insrc\devqc\src\plugins\qmlprofiler\qmlevent.h(274): warning C4267: '=': conversion from 'size_t' to 'quint16', possible loss of data Change-Id: I86ab7a9b2d01a3da70dd765cb64c6e58c1044cc1 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -271,7 +271,7 @@ private:
|
||||
{
|
||||
Number *data;
|
||||
m_dataLength = squeezable<size_t, quint16>(numbers.size()) ?
|
||||
numbers.size() : std::numeric_limits<quint16>::max();
|
||||
static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max();
|
||||
if (m_dataLength > sizeof(m_data) / sizeof(Number)) {
|
||||
if (squeeze<Container, Number>(numbers))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user