Skip to content

Commit

Permalink
compress: Fix missing c_str()
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Sep 24, 2024
1 parent 77dd5d0 commit b9a32f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/compress/compress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ std::vector<uint8_t> encode(llama_context *ctx, std::vector<llama_token> inp, gp
llama_token candidate = tok.id;
if (candidate == inp[index])
{
LOG("%s", llama_token_to_piece(ctx, candidate));
LOG("%s", llama_token_to_piece(ctx, candidate).c_str());
match = i;
break;
}
}
if(match<0){
LOG_ERR("\n couldn't match %s", llama_token_to_piece(ctx, inp[index]));
LOG_ERR("\n couldn't match %s", llama_token_to_piece(ctx, inp[index]).c_str());
exit(1);
}
sample_ids.push_back(match);
Expand Down

0 comments on commit b9a32f4

Please sign in to comment.