diff options
author | Borislav Stanimirov <b.stanimirov@abv.bg> | 2023-06-16 21:23:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 21:23:53 +0300 |
commit | 9cbf50c041a525d781c7764f493a5443924e4e38 (patch) | |
tree | 73c6331d8f95335616f3a20f71a9ad259431c3b7 /tests/test-tokenizer-0.cpp | |
parent | 3d0112261042b356621e93db3fa4c6798a5d098f (diff) |
build : fix and ignore MSVC warnings (#1889)
Diffstat (limited to 'tests/test-tokenizer-0.cpp')
-rw-r--r-- | tests/test-tokenizer-0.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-tokenizer-0.cpp b/tests/test-tokenizer-0.cpp index b0898457..ab1538a0 100644 --- a/tests/test-tokenizer-0.cpp +++ b/tests/test-tokenizer-0.cpp @@ -53,7 +53,7 @@ int main(int argc, char **argv) { for (const auto & test_kv : k_tests()) { std::vector<llama_token> res(test_kv.first.size()); - const int n = llama_tokenize(ctx, test_kv.first.c_str(), res.data(), res.size(), true); + const int n = llama_tokenize(ctx, test_kv.first.c_str(), res.data(), int(res.size()), true); res.resize(n); bool correct = res.size() == test_kv.second.size(); |