Explorar el Código

llama : add missing enum keyword in function signatures (#2610)

Kamil Tomšík hace 2 años
padre
commit
348acf188c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      llama.h

+ 1 - 1
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 your logging mechanism cannot handle that, check if the last character is '\n' and strip it
     // if it exists.
     // if it exists.
     // It might not exist for progress report where '.' is output repeatedly.
     // 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 {
     struct llama_context_params {
         uint32_t seed;         // RNG seed, -1 for random
         uint32_t seed;         // RNG seed, -1 for random