ref: 2471989852ff16ab9c1882e659d98c72d242afd1
parent: 2257b8ac4a218ec0babba308f5a19adc17718f8f
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Oct 28 15:18:02 EDT 2023
snap: when updating, there is no successor we want to move the blocks to
--- a/snap.c
+++ b/snap.c
@@ -433,7 +433,7 @@
/* this was the last ref to the snap */
if(o->nlbl == 0 && o->nsucc == 1){
t->prev = o->prev;
- delsnap(o, t->gen, nil);
+ delsnap(o, -1, nil);
}
closesnap(o);
asetp(r, t);