Skip to content

Commit

Permalink
llama : fix .base() compilation error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
compilade committed Jun 3, 2024
1 parent 8fb57ac commit 17f6c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ struct llama_rs_cache {
std::vector<llama_rs_seq_node>::iterator remove_seq_node_from_cell(llama_rs_cell & rs_cell, std::vector<llama_rs_seq_node>::iterator node_iter) {
GGML_ASSERT(&rs_cell >= cells.data() && &rs_cell < cells.data() + cells.size());
// The iterator needs to point inside the correct vector
GGML_ASSERT(node_iter.base() >= rs_cell.seq_nodes.data() && node_iter.base() < rs_cell.seq_nodes.data() + rs_cell.seq_nodes.size());
GGML_ASSERT(&(*node_iter) >= rs_cell.seq_nodes.data() && &(*node_iter) < rs_cell.seq_nodes.data() + rs_cell.seq_nodes.size());
if (node_iter != rs_cell.seq_nodes.end()) {
// update the tree
llama_rs_seq_node node = *node_iter;
Expand Down

0 comments on commit 17f6c1e

Please sign in to comment.