diff options
author | Borislav Stanimirov <b.stanimirov@abv.bg> | 2023-08-04 13:07:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 13:07:21 +0300 |
commit | ff966e7ca6af127c9405523cdb07ef8fa01bf6d6 (patch) | |
tree | efa2175da1110216b711950568860649281c0fe3 /examples/simple | |
parent | 8183159cf3def112f6d1fe94815fce70e1bffa12 (diff) |
build : fix several cast and printf warnings (#2499)
Diffstat (limited to 'examples/simple')
-rw-r--r-- | examples/simple/simple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple/simple.cpp b/examples/simple/simple.cpp index aa2c4352..97137a65 100644 --- a/examples/simple/simple.cpp +++ b/examples/simple/simple.cpp @@ -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; |