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

This commit is contained in:
edef 2015-04-15 22:48:42 -04:00
parent 04bbeb88f4
commit 5b6aa23731

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 }
};