Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Oct 4, 2024
1 parent 0594a17 commit 2653a75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ static void reuse_frame(query *q, const clause *cl)
f->overflow = 0;

const frame *newf = GET_FRAME(q->st.fp);
const slot *from = GET_SLOT(newf, 0);
slot *to = GET_SLOT(f, 0);

for (pl_idx i = 0; i < cl->nbr_vars; i++) {
const slot *from = GET_SLOT(newf, i);
slot *to = GET_SLOT(f, i);
for (pl_idx i = 0; i < cl->nbr_vars; i++, from++, to++) {
cell *c = &to->c;
unshare_cell(c);
to->c = from->c;
Expand Down

0 comments on commit 2653a75

Please sign in to comment.