aboutsummaryrefslogtreecommitdiff
path: root/examples/main/main.cpp
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-06-17 20:24:11 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-06-17 20:24:11 +0300
commit4f9c43e3bd488b7561119785485e1155dba338d7 (patch)
treede419431be3545017e2d4500005f0304eb9c1d3f /examples/main/main.cpp
parent2c9380dd2f77e41149340f3ecb09764d793b16db (diff)
minor : warning fixes
Diffstat (limited to 'examples/main/main.cpp')
-rw-r--r--examples/main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp
index a051fcb..941312f 100644
--- a/examples/main/main.cpp
+++ b/examples/main/main.cpp
@@ -354,7 +354,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("<<input too long: skipped %" PRIu64 " token%s>>", skipped_tokens, skipped_tokens != 1 ? "s" : "");
+ printf("<<input too long: skipped %zu token%s>>", skipped_tokens, skipped_tokens != 1 ? "s" : "");
console_set_color(con_st, CONSOLE_COLOR_DEFAULT);
fflush(stdout);
embd.resize(max_embd_size);