Skip to content

Commit f87f6e0

Browse files
committed
WIP
1 parent 5b222af commit f87f6e0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/query.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ static void push_frame(query *q)
655655
}
656656

657657
// Note: TCO's clause might not be the caller clause... hence passing
658-
// num_vars. Currently restricted to the same predicate though.
658+
// num_vars. Currently restricted to the same predicate though (still?).
659659

660660
static void reuse_frame(query *q, unsigned num_vars)
661661
{
@@ -671,7 +671,7 @@ static void reuse_frame(query *q, unsigned num_vars)
671671

672672
for (pl_idx i = 0; i < num_vars; i++) {
673673
unshare_cell(&to->c);
674-
*to++ = *from++;
674+
*to++ = *from++; // Slots are contiguous
675675
}
676676

677677
fold->initial_slots = fold->actual_slots = num_vars;

tests/tests/test101.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
test1: [f,4,c,5,t,4,s,8]
2-
test2: [f,4,c,5,t,4,s,8]
3-
test3: [f,4,c,5,t,4,s,8]
1+
test1: [f,5,c,5,t,5,s,10]
2+
test2: [f,5,c,5,t,5,s,10]
3+
test3: [f,5,c,5,t,5,s,11]
44
test4: [f,4,c,5,t,4,s,8]
55
test5: [f,4,c,5,t,4,s,8]
66
test6: [f,200004,c,5,t,200004,s,500008]

0 commit comments

Comments
 (0)