Skip to content

Commit

Permalink
use %ld instead of %lld
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheong01 committed Mar 26, 2024
1 parent 6e27406 commit ea753ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/embedding/embedding.cpp
Expand Up @@ -116,8 +116,8 @@ int main(int argc, char ** argv) {
for (const auto & prompt : prompts) {
auto inp = ::llama_tokenize(ctx, prompt, true, false);
if (inp.size() > n_batch) {
fprintf(stderr, "%s: error: number of tokens in input line (%lld) exceeds batch size (%lld), increase batch size and re-run\n",
__func__, (long long int) inp.size(), (long long int) n_batch);
fprintf(stderr, "%s: error: number of tokens in input line (%ld) exceeds batch size (%ld), increase batch size and re-run\n",
__func__, inp.size(), n_batch);
return 1;
}
inputs.push_back(inp);
Expand Down

0 comments on commit ea753ed

Please sign in to comment.