about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-07-02 19:51:39 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-07-08 04:54:41 -0400
commit90f1db10fa29eb6b91e22037f13130f854da1401 (patch)
treeebaee526480dc5966e8b072d43dd607eb97a6cc8 /src/libstd/rt
parent0aedecf96b08c41ea481eaaebd4e5d2e2325d9c9 (diff)
downloadrust-90f1db10fa29eb6b91e22037f13130f854da1401.tar.gz
rust-90f1db10fa29eb6b91e22037f13130f854da1401.zip
remove headers from exchange allocations
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/global_heap.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/rt/global_heap.rs b/src/libstd/rt/global_heap.rs
index 0e5b6427357..54deb8924f5 100644
--- a/src/libstd/rt/global_heap.rs
+++ b/src/libstd/rt/global_heap.rs
@@ -80,9 +80,8 @@ pub unsafe fn exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char {
 #[cfg(not(stage0), not(test))]
 #[lang="exchange_malloc"]
 #[inline]
-pub unsafe fn exchange_malloc(align: u32, size: uintptr_t) -> *c_char {
-    let total_size = get_box_size(size as uint, align as uint);
-    malloc_raw(total_size as uint) as *c_char
+pub unsafe fn exchange_malloc(_align: u32, size: uintptr_t) -> *c_char {
+    malloc_raw(size as uint) as *c_char
 }
 
 #[cfg(not(test))]