fix(rencache): fix compiler warning for printing size_t

This commit is contained in:
takase1121
2023-08-19 12:45:15 +08:00
parent 793af14dca
commit 6111b071ec
+1 -1
View File
@@ -142,7 +142,7 @@ static void* push_command(enum CommandType type, int size) {
int n = command_buf_idx + size; int n = command_buf_idx + size;
while (n > command_buf_size) { while (n > command_buf_size) {
if (!expand_command_buffer()) { 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)); (size_t)(command_buf_size * CMD_BUF_RESIZE_RATE));
resize_issue = true; resize_issue = true;
return NULL; return NULL;