save-load-state : remove a redundant c_str() call (clang-tidy)

This is recommended by the 'readability-redundant-string-cstr' check.
This commit is contained in:
Cebtenzzre 2023-09-05 19:44:58 -04:00
parent 6a9d1bd023
commit 4c703231cf

View file

@ -44,7 +44,7 @@ int main(int argc, char ** argv) {
llama_free_model(model); llama_free_model(model);
return 1; return 1;
} }
auto tokens = llama_tokenize(ctx, params.prompt.c_str(), true); auto tokens = llama_tokenize(ctx, params.prompt, true);
auto n_prompt_tokens = tokens.size(); auto n_prompt_tokens = tokens.size();
if (n_prompt_tokens < 1) { if (n_prompt_tokens < 1) {
fprintf(stderr, "%s : failed to tokenize prompt\n", __func__); fprintf(stderr, "%s : failed to tokenize prompt\n", __func__);