We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a363251 commit 8e7714fCopy full SHA for 8e7714f
src/llama-batch.cpp
@@ -406,7 +406,7 @@ struct llama_batch_ext * llama_batch_ext_init_from_embd(
406
}
407
408
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) {
+ if ((size_t) batch->n_tokens != n_pos) {
410
return -1;
411
412
memcpy(batch->pos, pos, n_pos * sizeof(llama_pos));
0 commit comments