diff --git a/src/vulkan/util/vk_physical_device_properties_gen.py b/src/vulkan/util/vk_physical_device_properties_gen.py index 2f5b7fd1213..3438738093e 100644 --- a/src/vulkan/util/vk_physical_device_properties_gen.py +++ b/src/vulkan/util/vk_physical_device_properties_gen.py @@ -169,7 +169,7 @@ vk_common_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, % endfor vk_foreach_struct(ext, pProperties->pNext) { - switch (ext->sType) { + switch ((int32_t)ext->sType) { % for property_struct in property_structs: % if property_struct.is_android: #ifdef ANDROID