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:
Antti Määttä 2023-01-31 13:18:57 +02:00
parent 0ca8c50d95
commit a1d43b8334

View File

@ -144,7 +144,7 @@ void QCtfLibImpl::writeCtfPacket(QCtfLibImpl::Channel &ch)
packet << (char)0;
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);
ch.data.resize(packetSize - packet.size(), 0);
fwrite(ch.data.data(), ch.data.size(), 1, file);