Commit 1a07e437 authored by Tim Crawford's avatar Tim Crawford
Browse files

Fix global allocator

Don't overwrite the pointer with the status, which will be 0.

Fixes: f2cc919c

 ("Update uefi dep, fix building on nightly")
Signed-off-by: Tim Crawford's avatarTim Crawford <tcrawford@system76.com>
parent 482befe0
......@@ -29,7 +29,7 @@ unsafe impl GlobalAlloc for Allocator {
.branch();
match res {
ControlFlow::Continue(ptr) => ptr as *mut u8,
ControlFlow::Continue(_) => ptr as *mut u8,
ControlFlow::Break(_) => ptr::null_mut(),
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment