Skip to content

Commit

Permalink
Fixed build with jemalloc disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vhbit committed Feb 26, 2015
1 parent 3a96d6a commit d0bb57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ mod imp {
libc::realloc(ptr as *mut libc::c_void, size as libc::size_t) as *mut u8
} else {
let new_ptr = allocate(size, align);
ptr::copy_memory(new_ptr, ptr, cmp::min(size, old_size));
ptr::copy(new_ptr, ptr, cmp::min(size, old_size));
deallocate(ptr, old_size, align);
new_ptr
}
Expand Down

0 comments on commit d0bb57c

Please sign in to comment.