Skip to content
Snippets Groups Projects
Commit 1fa963be authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #54 from L3nn0x/patch-1

Correct small bug in memcpy 32bits implementation
parents d6b9768d eebba929
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ pub unsafe extern fn memcpy(dest: *mut u8, src: *const u8, ...@@ -32,7 +32,7 @@ pub unsafe extern fn memcpy(dest: *mut u8, src: *const u8,
#[no_mangle] #[no_mangle]
pub unsafe extern fn memcpy(dest: *mut u8, src: *const u8, pub unsafe extern fn memcpy(dest: *mut u8, src: *const u8,
n: usize) -> *mut u8 { n: usize) -> *mut u8 {
let n_32: usize = n/8; // Number of 32-bit groups let n_32: usize = n/4; // Number of 32-bit groups
let mut i: usize = 0; let mut i: usize = 0;
// Copy 4 bytes at a time // Copy 4 bytes at a time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment