pass os::Stack addresses to Valgrind in the right order

master
edef 2015-04-15 22:48:42 -04:00
parent 04bbeb88f4
commit 5b6aa23731
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ impl Stack {
}
let valgrind_id =
valgrind::stack_register(ptr.offset(len as isize) as *const _,
ptr as *const _);
valgrind::stack_register(ptr as *const _,
ptr.offset(len as isize) as *const _);
Stack { ptr: ptr as *mut u8, len: len, valgrind_id: valgrind_id }
};