From: Doomsdayrs Date: Sat, 25 Mar 2023 05:21:24 +0000 (-0400) Subject: Add missing struct annotation (#483) X-Git-Tag: gguf-v0.4.0~1118 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=36d07532ef7ccf0bdc12e050472f359a6794957f;p=pkg%2Fggml%2Fsources%2Fllama.cpp Add missing struct annotation (#483) `llama_sample_top_p_top_k` was missing the struct annotation on line 126. This causes a compiler issue when being parsed by the Kotlin C interop generator. This commit fixes the above issue by adding the struct annotation. --- diff --git a/llama.h b/llama.h index 9943d96b..57123dbc 100644 --- a/llama.h +++ b/llama.h @@ -123,7 +123,7 @@ extern "C" { // TODO: improve the last_n_tokens interface ? LLAMA_API llama_token llama_sample_top_p_top_k( - llama_context * ctx, + struct llama_context * ctx, const llama_token * last_n_tokens_data, int last_n_tokens_size, int top_k,