Skip to content

Commit dd0dc36

Browse files
authored
llama.h : add missing struct keyword for C compat in callback type (#2847)
1 parent f55538c commit dd0dc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ extern "C" {
496496
// Type of pointer to the beam_search_callback function.
497497
// void* callback_data is any custom data passed to llama_beam_search, that is subsequently
498498
// passed back to beam_search_callback. This avoids having to use global variables in the callback.
499-
typedef void (*llama_beam_search_callback_fn_t)(void * callback_data, llama_beams_state);
499+
typedef void (*llama_beam_search_callback_fn_t)(void * callback_data, struct llama_beams_state);
500500

501501
/// @details Deterministically returns entire sentence constructed by a beam search.
502502
/// @param ctx Pointer to the llama_context.

0 commit comments

Comments
 (0)