forked from M-Labs/libfringe
pass os::Stack addresses to Valgrind in the right order
This commit is contained in:
parent
04bbeb88f4
commit
5b6aa23731
|
@ -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 }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue