Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
uefi_alloc
Commits
4285ef50
Commit
4285ef50
authored
Oct 26, 2021
by
Jeremy Soller
Browse files
Merge branch 'null-alloc' into 'master'
Fix global allocator See merge request
!3
parents
482befe0
1a07e437
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
4285ef50
...
...
@@ -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
(),
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment