Skip to content

Commit 5f62db7

Browse files
committed
llama : fix mixed signedness comparison
1 parent 9d3f44d commit 5f62db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20963,7 +20963,7 @@ struct llama_data_read {
2096320963

2096420964
bool read_cache_seq_meta(struct llama_context * ctx, uint32_t cell_count, llama_seq_id seq_id = -1) {
2096520965

20966-
if (seq_id < 0 || seq_id >= llama_n_seq_max(ctx)) {
20966+
if (seq_id < 0 || seq_id >= (llama_seq_id) llama_n_seq_max(ctx)) {
2096720967
LLAMA_LOG_ERROR("%s: seq_id out of range [0, %d): %d\n", __func__, llama_n_seq_max(ctx), seq_id);
2096820968
return false;
2096920969
}

0 commit comments

Comments
 (0)