Skip to content

Commit 8e7714f

Browse files
committed
fix compile
1 parent a363251 commit 8e7714f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-batch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ struct llama_batch_ext * llama_batch_ext_init_from_embd(
406406
}
407407

408408
int32_t llama_batch_ext_set_pos(struct llama_batch_ext * batch, llama_pos * pos, size_t n_pos) {
409-
if (batch->n_tokens != n_pos) {
409+
if ((size_t) batch->n_tokens != n_pos) {
410410
return -1;
411411
}
412412
memcpy(batch->pos, pos, n_pos * sizeof(llama_pos));

0 commit comments

Comments
 (0)