Skip to content

Commit b9a32f4

Browse files
committed
compress: Fix missing c_str()
1 parent 77dd5d0 commit b9a32f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/compress/compress.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ std::vector<uint8_t> encode(llama_context *ctx, std::vector<llama_token> inp, gp
7373
llama_token candidate = tok.id;
7474
if (candidate == inp[index])
7575
{
76-
LOG("%s", llama_token_to_piece(ctx, candidate));
76+
LOG("%s", llama_token_to_piece(ctx, candidate).c_str());
7777
match = i;
7878
break;
7979
}
8080
}
8181
if(match<0){
82-
LOG_ERR("\n couldn't match %s", llama_token_to_piece(ctx, inp[index]));
82+
LOG_ERR("\n couldn't match %s", llama_token_to_piece(ctx, inp[index]).c_str());
8383
exit(1);
8484
}
8585
sample_ids.push_back(match);

0 commit comments

Comments
 (0)