From c341915b115fa7bf191e5cbd65eb2e1878fa447d Mon Sep 17 00:00:00 2001 From: FrankHB Date: Fri, 16 Jun 2023 22:22:43 +0800 Subject: [PATCH] Fixed a mismatch format The size is unsigned and the format should match the type of the size. --- examples/main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/main/main.cpp b/examples/main/main.cpp index efa913e16..9e3b4fcbf 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -348,7 +348,7 @@ int main(int argc, char ** argv) { if ((int)embd.size() > max_embd_size) { auto skipped_tokens = embd.size() - max_embd_size; console_set_color(con_st, CONSOLE_COLOR_ERROR); - printf("<>", skipped_tokens, skipped_tokens != 1 ? "s" : ""); + printf("<>", skipped_tokens, skipped_tokens != 1 ? "s" : ""); console_set_color(con_st, CONSOLE_COLOR_DEFAULT); fflush(stdout); embd.resize(max_embd_size);