From 927c0a8573b6e135d594695c7ca143611b43fb38 Mon Sep 17 00:00:00 2001 From: David Neto Date: Tue, 23 Jan 2024 21:04:34 +0000 Subject: [PATCH] Use format specifier PRIu64 only with uint64_t types Fixed: #399 --- include/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 6a51339..34b83bf 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -3042,7 +3042,7 @@ static void vma_aligned_free(void* VMA_NULLABLE ptr) } static inline void VmaUint64ToStr(char* VMA_NOT_NULL outStr, size_t strLen, uint64_t num) { - snprintf(outStr, strLen, "%" PRIu64, static_cast(num)); + snprintf(outStr, strLen, "%" PRIu64, num); } static inline void VmaPtrToStr(char* VMA_NOT_NULL outStr, size_t strLen, const void* ptr) {