Merge pull request #33 from devnexen/vk_common_arg_fix

fix printf format warnings to represent VkDeviceSize (aka uint64_t).
This commit is contained in:
Denis Pauk 2022-12-08 22:20:23 +02:00 committed by GitHub
commit d39193d419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -715,9 +715,11 @@ YQ2_ATTR_NORETURN void Com_Quit(void);
* format specifiers unter mingw. */
#ifdef WIN32
#define YQ2_COM_PRId64 "%I64d"
#define YQ2_COM_PRIu64 "%I64u"
#define YQ2_COM_PRIdS "%Id"
#else
#define YQ2_COM_PRId64 "%ld"
#define YQ2_COM_PRIu64 "%llu"
#define YQ2_COM_PRIdS "%zd"
#endif

View File

@ -2510,7 +2510,7 @@ uint8_t *QVk_GetStagingBuffer(VkDeviceSize size, int alignment, VkCommandBuffer
stagingBuffer = &vk_stagingBuffers[vk_activeStagingBuffer];
if (size > stagingBuffer->resource.size)
{
R_Printf(PRINT_ALL, "%s: %d: Resize stanging buffer" YQ2_COM_PRId64 "->" YQ2_COM_PRId64 "\n",
R_Printf(PRINT_ALL, "%s: %d: Resize stanging buffer" YQ2_COM_PRIu64 "->" YQ2_COM_PRIu64 "\n",
__func__, vk_activeStagingBuffer, stagingBuffer->resource.size, size);
DestroyStagingBuffer(stagingBuffer);