Skip to content

Commit ea753ed

Browse files
committed
use %ld instead of %lld
1 parent 6e27406 commit ea753ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/embedding/embedding.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ int main(int argc, char ** argv) {
116116
for (const auto & prompt : prompts) {
117117
auto inp = ::llama_tokenize(ctx, prompt, true, false);
118118
if (inp.size() > n_batch) {
119-
fprintf(stderr, "%s: error: number of tokens in input line (%lld) exceeds batch size (%lld), increase batch size and re-run\n",
120-
__func__, (long long int) inp.size(), (long long int) n_batch);
119+
fprintf(stderr, "%s: error: number of tokens in input line (%ld) exceeds batch size (%ld), increase batch size and re-run\n",
120+
__func__, inp.size(), n_batch);
121121
return 1;
122122
}
123123
inputs.push_back(inp);

0 commit comments

Comments
 (0)