From cc570ce2fe22e6314d378d3f2d6e4ae1a08df3a2 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Sat, 12 Sep 2020 19:14:08 +0200 Subject: Fix vulkan example build with MSVC Undeclared identifier ssize_t etc. Just use int. Not like we can have more than a handful of physical devices anyway. Change-Id: Ie1fb7ab9794a7d39e84db864c2be6dbdd5d97f50 Reviewed-by: Andy Nichols --- examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/vulkan/hellovulkanwidget') diff --git a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp index 2020ec1d37..3e44fabec9 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: %zd\n", ssize_t(m_window->availablePhysicalDevices().count())); + info += QString::asprintf("Number of physical devices: %d\n", int(m_window->availablePhysicalDevices().count())); QVulkanFunctions *f = inst->functions(); VkPhysicalDeviceProperties props; -- cgit v1.2.3