From 5f62db790b8e548eb7db0f69a9fadb7f809f6c96 Mon Sep 17 00:00:00 2001 From: Francis Couture-Harpin Date: Sun, 1 Sep 2024 21:50:27 -0400 Subject: [PATCH] llama : fix mixed signedness comparison --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index 842de9118..cf7dccb38 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -20963,7 +20963,7 @@ struct llama_data_read { bool read_cache_seq_meta(struct llama_context * ctx, uint32_t cell_count, llama_seq_id seq_id = -1) { - if (seq_id < 0 || seq_id >= llama_n_seq_max(ctx)) { + if (seq_id < 0 || seq_id >= (llama_seq_id) llama_n_seq_max(ctx)) { LLAMA_LOG_ERROR("%s: seq_id out of range [0, %d): %d\n", __func__, llama_n_seq_max(ctx), seq_id); return false; }