Commit 1c3e122d authored by David Schulz's avatar David Schulz

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's avatarUlf Hermann <ulf.hermann@qt.io>
parent ddefe062
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment