Skip to content

Commit 6129afa

Browse files
committed
Fix constructor
1 parent f3b3749 commit 6129afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl Heap {
4545
#[cfg(not(feature = "const_mut_refs"))]
4646
pub fn empty() -> Heap {
4747
Heap {
48-
bottom: 0,
48+
bottom: core::ptr::null_mut(),
4949
size: 0,
5050
used: 0,
5151
holes: HoleList::empty(),

0 commit comments

Comments
 (0)