From 2b0db5593916680f3eee34c4b4dd2de16c5736a2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 3 Aug 2020 09:46:40 +0200 Subject: [PATCH] Fix compiler warning about qsizetype/int mismatch Change-Id: I58624d8c5de0734bd0851e6744ed34c1408dfda6 Reviewed-by: Laszlo Agocs --- examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp index e1b527b6a3d..2020ec1d373 100644 --- a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp +++ b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp @@ -140,7 +140,7 @@ void VulkanRenderer::initResources() m_devFuncs = inst->deviceFunctions(m_window->device()); QString info; - info += QString::asprintf("Number of physical devices: %d\n", m_window->availablePhysicalDevices().count()); + info += QString::asprintf("Number of physical devices: %zd\n", ssize_t(m_window->availablePhysicalDevices().count())); QVulkanFunctions *f = inst->functions(); VkPhysicalDeviceProperties props;