mirror of
https://github.com/Noratrieb/awwoc.git
synced 2026-01-14 11:45:03 +01:00
wroks
This commit is contained in:
parent
4b76492f78
commit
f725efa471
2 changed files with 8 additions and 6 deletions
|
|
@ -112,7 +112,7 @@ impl RootNode {
|
|||
let block_ref_ptr = current_block.as_ptr();
|
||||
let block_ref = block_ref_ptr.read();
|
||||
|
||||
if block_ref.size <= size {
|
||||
if size <= block_ref.size {
|
||||
// rewire the link to skip the current node
|
||||
prev_next_ptr.write(block_ref.next_free_block);
|
||||
(*block_ref_ptr).next_free_block = None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue