Skip to content

Commit

Permalink
llama : fix mixed signedness comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
compilade committed Sep 2, 2024
1 parent 9d3f44d commit 5f62db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5f62db7

Please sign in to comment.