From 5b6aa237316d93b6d949b3f9f7d643755e2732d0 Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 15 Apr 2015 22:48:42 -0400 Subject: [PATCH] pass os::Stack addresses to Valgrind in the right order --- src/os.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os.rs b/src/os.rs index 8cfbccb..3d00dae 100644 --- a/src/os.rs +++ b/src/os.rs @@ -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 } };