summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-08-03 09:46:40 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-04 13:28:33 +0200
commit2b0db5593916680f3eee34c4b4dd2de16c5736a2 (patch)
tree6564b8b5a8c6ce65451952d5823f7ad5fd833d17
parent4e74bb48234f41c9d6306c7a3cd6835c2cd42348 (diff)
Fix compiler warning about qsizetype/int mismatch
Change-Id: I58624d8c5de0734bd0851e6744ed34c1408dfda6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r--examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp
index e1b527b6a3..2020ec1d37 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;