diff options
| author | Valerii Hiora <valerii.hiora@gmail.com> | 2015-02-26 14:17:28 +0200 |
|---|---|---|
| committer | Valerii Hiora <valerii.hiora@gmail.com> | 2015-02-26 20:27:53 +0200 |
| commit | d0bb57cfc38bfa2347c4b65ee6abd20a9462847c (patch) | |
| tree | e6e84fc36cfbcf03a24bfd1ce0841fcd0e1b22e0 /src/liballoc | |
| parent | 3a96d6a9818fe2affc98a187fb1065120458cee9 (diff) | |
| download | rust-d0bb57cfc38bfa2347c4b65ee6abd20a9462847c.tar.gz rust-d0bb57cfc38bfa2347c4b65ee6abd20a9462847c.zip | |
Fixed build with jemalloc disabled
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index d3d86270d1e..726d5c8a23b 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -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 } |
