From b60f516aca5196a49e3cc53e7620c2b5da3f507c Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 24 Jun 2020 20:39:35 +0200 Subject: Fix qsizetype fallout in rhi manual tests Change-Id: I574a2930b5eeb4b3e1f3c6fca6d70dbda64ec324 Reviewed-by: Andy Nichols --- tests/manual/rhi/qrhiprof/qrhiprof.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/manual') diff --git a/tests/manual/rhi/qrhiprof/qrhiprof.cpp b/tests/manual/rhi/qrhiprof/qrhiprof.cpp index 7e3027a951..aa09f78bf3 100644 --- a/tests/manual/rhi/qrhiprof/qrhiprof.cpp +++ b/tests/manual/rhi/qrhiprof/qrhiprof.cpp @@ -578,7 +578,7 @@ int main(int argc, char **argv) QLabel *buffersLabel = new QLabel; QObject::connect(&tracker, &Tracker::buffersTouched, buffersLabel, [buffersLabel, &tracker] { const QString msg = QString::asprintf("%d buffers with ca. %lld bytes of current memory (sub)allocations (peak %lld) + %lld bytes of known staging buffers (peak %lld)", - tracker.m_buffers.count(), + int(tracker.m_buffers.count()), tracker.m_totalBufferApproxByteSize, tracker.m_peakBufferApproxByteSize, tracker.m_totalStagingBufferApproxByteSize, tracker.m_peakStagingBufferApproxByteSize); buffersLabel->setText(msg); @@ -588,7 +588,7 @@ int main(int argc, char **argv) QLabel *texturesLabel = new QLabel; QObject::connect(&tracker, &Tracker::texturesTouched, texturesLabel, [texturesLabel, &tracker] { const QString msg = QString::asprintf("%d textures with ca. %lld bytes of current memory (sub)allocations (peak %lld) + %lld bytes of known staging buffers (peak %lld)", - tracker.m_textures.count(), + int(tracker.m_textures.count()), tracker.m_totalTextureApproxByteSize, tracker.m_peakTextureApproxByteSize, tracker.m_totalTextureStagingBufferApproxByteSize, tracker.m_peakTextureStagingBufferApproxByteSize); texturesLabel->setText(msg); -- cgit v1.2.3