about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2013-12-25 00:53:05 +0100
committerFlorian Hahn <flo@fhahn.com>2014-01-06 21:28:54 +0100
commit82365501043735dd8ec5eadaa5d30354cee19252 (patch)
tree6671655462aa0b1b49448b203888362cedd9af5e /src/libstd/rt
parent6be2bc817bbb70ac13a1c2bb9647e01e2a156127 (diff)
downloadrust-82365501043735dd8ec5eadaa5d30354cee19252.tar.gz
rust-82365501043735dd8ec5eadaa5d30354cee19252.zip
Remove some unnecessary type casts
Conflicts:
	src/librustc/middle/lint.rs
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/global_heap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/global_heap.rs b/src/libstd/rt/global_heap.rs
index 385bb0b276c..c094344f6b9 100644
--- a/src/libstd/rt/global_heap.rs
+++ b/src/libstd/rt/global_heap.rs
@@ -76,7 +76,7 @@ pub unsafe fn closure_exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char {
     assert!(td.is_not_null());
 
     let total_size = get_box_size(size, (*td).align);
-    let p = malloc_raw(total_size as uint);
+    let p = malloc_raw(total_size);
 
     let alloc = p as *mut raw::Box<()>;
     (*alloc).type_desc = td;