diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 11:41:26 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 12:39:57 -0400 |
commit | 491c55e6e0295904c8c5f996503b4e8b9e2e180c (patch) | |
tree | b61a2d311046ea655419b3fc87168109e077f827 /util.c | |
parent | 8992106928756d47697ea26f88b7b5eceacf3845 (diff) | |
download | roux-491c55e6e0295904c8c5f996503b4e8b9e2e180c.tar.gz |
handle odd jumps in blkdel() an renblk()
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c index dbba264..5eda5e5 100644 --- a/util.c +++ b/util.c @@ -104,6 +104,8 @@ blkdel(Blk *b) Phi *p; uint a; + if (b->s1 == b->s2) /* do not delete twice */ + b->s2 = 0; for (ps=(Blk*[]){b->s1, b->s2, 0}; (s=*ps); ps++) { for (p=s->phi; p; p=p->link) { for (a=0; p->blk[a]!=b; a++) |