From 20bd79273638b9a3c3eddc90bce6f75706f36413 Mon Sep 17 00:00:00 2001 From: mendax0110 Date: Sun, 30 Jul 2023 16:59:17 +0200 Subject: [PATCH] make auto const --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 1fef8f980..163f170e9 100644 --- a/llama.cpp +++ b/llama.cpp @@ -2661,7 +2661,7 @@ void llama_sample_grammar(struct llama_context * ctx, llama_token_data_array * c const auto rejects = llama_grammar_reject_candidates(grammar->rules, grammar->stacks, candidates_grammar); - for (auto & reject : rejects) { + for (const auto & reject : rejects) { candidates->data[reject.index].logit = -INFINITY; }