summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-09-12 19:14:08 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-09-14 09:48:05 +0200
commitcc570ce2fe22e6314d378d3f2d6e4ae1a08df3a2 (patch)
tree982bc0e87d7a470824b44928b1fa05a114b860dc /examples
parented2f5e7cf2df6843bec2260b238cbcb216ea1dca (diff)
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 <andy.nichols@qt.io>
Diffstat (limited to 'examples')
-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 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;