diff --git a/examples/compress/compress.cpp b/examples/compress/compress.cpp index 7636019e2..a0f79005f 100644 --- a/examples/compress/compress.cpp +++ b/examples/compress/compress.cpp @@ -73,13 +73,13 @@ std::vector encode(llama_context *ctx, std::vector 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);