From d08f64964261bd80b4a1cec587e8779a3fae38a3 Mon Sep 17 00:00:00 2001 From: Xuelian Bai Date: Fri, 26 Jan 2024 08:02:09 +0800 Subject: Fix build error for riscv Change-Id: I95b17986164acb649d33aa3df25bf3bdaca87a59 --- util/extension_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3