Fix comparison sign missmatch warning
Pick-to: 6.5 Change-Id: Id266add0a2c203c31ae76bd3dc20e625e86e5a13 Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
0ca8c50d95
commit
a1d43b8334
@ -144,7 +144,7 @@ void QCtfLibImpl::writeCtfPacket(QCtfLibImpl::Channel &ch)
|
|||||||
packet << (char)0;
|
packet << (char)0;
|
||||||
|
|
||||||
Q_ASSERT(ch.data.size() + packetHeaderSize + ch.threadNameLength <= packetSize);
|
Q_ASSERT(ch.data.size() + packetHeaderSize + ch.threadNameLength <= packetSize);
|
||||||
Q_ASSERT(packet.size() == packetHeaderSize + ch.threadNameLength);
|
Q_ASSERT(packet.size() == qsizetype(packetHeaderSize + ch.threadNameLength));
|
||||||
fwrite(packet.data(), packet.size(), 1, file);
|
fwrite(packet.data(), packet.size(), 1, file);
|
||||||
ch.data.resize(packetSize - packet.size(), 0);
|
ch.data.resize(packetSize - packet.size(), 0);
|
||||||
fwrite(ch.data.data(), ch.data.size(), 1, file);
|
fwrite(ch.data.data(), ch.data.size(), 1, file);
|
||||||
|
Loading…
Reference in New Issue
Block a user