diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-05-27 18:14:00 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-05-27 18:14:00 -0400 |
| commit | e6c04dea0325af808198306e283c17f90d31fc26 (patch) | |
| tree | 24bc89536ccc70401dd540ce471a783e259f2142 /src/libstd/ptr.rs | |
| parent | 14846613bbd72003dd8f244b64ad679b586b6dd9 (diff) | |
| download | rust-e6c04dea0325af808198306e283c17f90d31fc26.tar.gz rust-e6c04dea0325af808198306e283c17f90d31fc26.zip | |
fix casts on 32-bit
Diffstat (limited to 'src/libstd/ptr.rs')
| -rw-r--r-- | src/libstd/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ptr.rs b/src/libstd/ptr.rs index e787558c6e4..309129b7f13 100644 --- a/src/libstd/ptr.rs +++ b/src/libstd/ptr.rs @@ -109,7 +109,7 @@ pub unsafe fn copy_memory<T>(dst: *mut T, src: *const T, count: uint) { #[cfg(target_word_size = "32", not(stage0))] pub unsafe fn copy_memory<T>(dst: *mut T, src: *const T, count: uint) { use unstable::intrinsics::memmove32; - memmove32(dst, src, count as u32); + memmove32(dst, src as *T, count as u32); } #[inline(always)] |
