mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Merge pull request #1794 from matricks/bugfix
fixed memmove. were using memcpy due to copy paste error
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ unsafe fn memcpy<T>(dst: *T, src: *T, count: uint) {
|
||||
Count is the number of elements to copy and not the number of bytes.
|
||||
*/
|
||||
unsafe fn memmove<T>(dst: *T, src: *T, count: uint) {
|
||||
rusti::memcpy(dst, src, count);
|
||||
rusti::memmove(dst, src, count);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user