Merge pull request #400 from dneto0/issue-399

Use format specifier PRIu64 only with uint64_t types
This commit is contained in:
Adam Sawicki 2024-01-24 14:02:03 +01:00 committed by GitHub
commit 01ccf06e4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) static inline void VmaUint64ToStr(char* VMA_NOT_NULL outStr, size_t strLen, uint64_t num)
{ {
snprintf(outStr, strLen, "%" PRIu64, static_cast<unsigned long long>(num)); snprintf(outStr, strLen, "%" PRIu64, num);
} }
static inline void VmaPtrToStr(char* VMA_NOT_NULL outStr, size_t strLen, const void* ptr) static inline void VmaPtrToStr(char* VMA_NOT_NULL outStr, size_t strLen, const void* ptr)
{ {