mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
fix null check (accidentally inverted conditional)
This commit is contained in:
parent
3e423ce418
commit
7989ee763c
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ impl<T> Heap<T> {
|
|||
}
|
||||
|
||||
pub fn alloc(&mut self) -> Result<*mut T> {
|
||||
if self.free_list.is_null() {
|
||||
if !self.free_list.is_null() {
|
||||
// Open slot on the free list.
|
||||
let root = self.free_list as *const *const c_void;
|
||||
let next = unsafe { *root };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue