]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : add missing enum keyword in function signatures (#2610)
authorKamil Tomšík <redacted>
Mon, 14 Aug 2023 13:35:16 +0000 (15:35 +0200)
committerGitHub <redacted>
Mon, 14 Aug 2023 13:35:16 +0000 (16:35 +0300)
llama.h

diff --git a/llama.h b/llama.h
index d237bcc54be3eb4efab7acc708143191d1850b11..92b474891493e1a8bd3648c10e80ea61121513ac 100644 (file)
--- a/llama.h
+++ b/llama.h
@@ -97,7 +97,7 @@ extern "C" {
     // If your logging mechanism cannot handle that, check if the last character is '\n' and strip it
     // if it exists.
     // It might not exist for progress report where '.' is output repeatedly.
-    typedef void (*llama_log_callback)(llama_log_level level, const char * text, void * user_data);
+    typedef void (*llama_log_callback)(enum llama_log_level level, const char * text, void * user_data);
 
     struct llama_context_params {
         uint32_t seed;         // RNG seed, -1 for random