From 83399280f5daeffe497ebfc3e225a6753cbcf5ca Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Sun, 23 Apr 2023 16:35:40 +0800 Subject: [PATCH] fix(rencache): fix compiler warning for printing size_t --- src/rencache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rencache.c b/src/rencache.c index 928d0b0d..52527969 100644 --- a/src/rencache.c +++ b/src/rencache.c @@ -142,7 +142,7 @@ static void* push_command(enum CommandType type, int size) { int n = command_buf_idx + size; while (n > command_buf_size) { if (!expand_command_buffer()) { - fprintf(stderr, "Warning: (" __FILE__ "): unable to resize command buffer (%ld)\n", + fprintf(stderr, "Warning: (" __FILE__ "): unable to resize command buffer (%zu)\n", (size_t)(command_buf_size * CMD_BUF_RESIZE_RATE)); resize_issue = true; return NULL;