summaryrefslogtreecommitdiff
path: root/examples/simple
diff options
context:
space:
mode:
authorBorislav Stanimirov <b.stanimirov@abv.bg>2023-08-04 13:07:21 +0300
committerGitHub <noreply@github.com>2023-08-04 13:07:21 +0300
commitff966e7ca6af127c9405523cdb07ef8fa01bf6d6 (patch)
treeefa2175da1110216b711950568860649281c0fe3 /examples/simple
parent8183159cf3def112f6d1fe94815fce70e1bffa12 (diff)
build : fix several cast and printf warnings (#2499)
Diffstat (limited to 'examples/simple')
-rw-r--r--examples/simple/simple.cpp2
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;