summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuelian Bai <xuelian.bai@samsung.com>2024-01-26 08:02:09 +0800
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-26 08:04:51 +0800
commitd08f64964261bd80b4a1cec587e8779a3fae38a3 (patch)
tree2b1967befb1388f4d14c0330c90a8a6014e29692
parentbdcb4586f4b8d5437d02e7dad8afc386867b74e6 (diff)
downloadvulkan-wsi-layer-d08f64964261bd80b4a1cec587e8779a3fae38a3.tar.gz
vulkan-wsi-layer-d08f64964261bd80b4a1cec587e8779a3fae38a3.tar.bz2
vulkan-wsi-layer-d08f64964261bd80b4a1cec587e8779a3fae38a3.zip
Change-Id: I95b17986164acb649d33aa3df25bf3bdaca87a59
-rw-r--r--util/extension_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/extension_list.cpp b/util/extension_list.cpp
index 6a6ee5c..f361d83 100644
--- a/util/extension_list.cpp
+++ b/util/extension_list.cpp
@@ -54,7 +54,7 @@ VkResult extension_list::add(const char *const *extensions, size_t count)
bool success = false;
if (len < sizeof(dst.extensionName))
{
- int chars_printed = snprintf(dst.extensionName, len + 1, "%s", extensions[i]);
+ unsigned int chars_printed = snprintf(dst.extensionName, len + 1, "%s", extensions[i]);
if (chars_printed == len)
{
success = true;