mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 09:21:42 +03:00
vere: fixes u3_auto_drop list-unlink implementation
This commit is contained in:
parent
42213269ce
commit
5c9252e986
@ -162,10 +162,16 @@ u3_auto_drop(u3_auto* car_u, u3_ovum* egg_u)
|
||||
if ( egg_u->pre_u ) {
|
||||
egg_u->pre_u->nex_u = egg_u->nex_u;
|
||||
}
|
||||
else {
|
||||
egg_u->car_u->ent_u = egg_u->nex_u;
|
||||
}
|
||||
|
||||
if ( egg_u->nex_u ) {
|
||||
egg_u->nex_u->pre_u = egg_u->pre_u;
|
||||
}
|
||||
else {
|
||||
egg_u->car_u->ext_u = egg_u->pre_u;
|
||||
}
|
||||
|
||||
egg_u->car_u->dep_w--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user