build : fix several cast and printf warnings (#2499)

This commit is contained in:
Borislav Stanimirov
2023-08-04 13:07:21 +03:00
committed by GitHub
parent 79f99c6b4d
commit 04e64ce94e
4 changed files with 7 additions and 7 deletions

View File

@@ -123,7 +123,7 @@ int main(int argc, char ** argv)
// Evaluate the tokens :
//---------------------------------
if ( llama_eval( ctx , tokens_list.data() , tokens_list.size() , llama_get_kv_cache_token_count( ctx ) , params.n_threads ) )
if ( llama_eval( ctx , tokens_list.data() , int(tokens_list.size()) , llama_get_kv_cache_token_count( ctx ) , params.n_threads ) )
{
fprintf( stderr, "%s : failed to eval\n" , __func__ );
return 1;