Skip to content
Snippets Groups Projects

Fix global allocator

Merged Tim Crawford requested to merge (removed):null-alloc into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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(),
}
}
Loading