From a46dfcfd5c3b45d658bca5479ca3bbed16ced5dc Mon Sep 17 00:00:00 2001 From: jaime-m-p <> Date: Sun, 19 May 2024 01:20:17 +0200 Subject: [PATCH] Type fix --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index bce4ee5b6..0e8a850ed 100644 --- a/llama.cpp +++ b/llama.cpp @@ -12816,7 +12816,7 @@ static std::vector llama_tokenize_internal(const llama_vocab & auto raw_text = fragment.raw_text.substr(fragment.offset, fragment.length); if (special_token_rtrim) { - uint num_whitespaces = 0; + size_t num_whitespaces = 0; while (isspace(raw_text[num_whitespaces])) { num_whitespaces++; }