Commit c58411a
committed
fix(deallocate_middle): advance to next in try_insert_after
If the next hole node is still lower than the hole to be added, advance
the cursor to the next in the list.
For this to trigger, this patch modifies the `deallocate_middle()` test.
It requires two holes in the list before the one to be deallocated.
Signed-off-by: Harald Hoyer <harald@profian.com>1 parent cf6a569 commit c58411a
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
438 | 443 | | |
439 | 444 | | |
440 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
0 commit comments