diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-01-21 09:35:11 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-01-22 23:13:57 -0500 |
| commit | 1798de7d08a7f20da08a1aad7d5c5216a75bf4ed (patch) | |
| tree | 4ad1ac37a96af17a48a3b179a6842d291a3b88c7 /src/libstd/rt | |
| parent | 17d23b8c1727d5fc6fa696d931caf87fa8c0809b (diff) | |
| download | rust-1798de7d08a7f20da08a1aad7d5c5216a75bf4ed.tar.gz rust-1798de7d08a7f20da08a1aad7d5c5216a75bf4ed.zip | |
add new vector representation as a library
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/global_heap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/global_heap.rs b/src/libstd/rt/global_heap.rs index ead78ce41ef..6bee8cb70f5 100644 --- a/src/libstd/rt/global_heap.rs +++ b/src/libstd/rt/global_heap.rs @@ -52,7 +52,7 @@ pub unsafe fn realloc_raw(ptr: *mut u8, size: uint) -> *mut u8 { // `realloc(ptr, 0)` may allocate, but it may also return a null pointer // http://pubs.opengroup.org/onlinepubs/9699919799/functions/realloc.html if size == 0 { - free(ptr); + free(ptr as *mut c_void); mut_null() } else { let p = realloc(ptr as *mut c_void, size as size_t); |
