|
From: Philippe W. <phi...@so...> - 2018-07-30 22:19:22
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=5f900edef158f39b51414f8d5f20cd99363b2c09 commit 5f900edef158f39b51414f8d5f20cd99363b2c09 Author: Philippe Waroquiers <phi...@sk...> Date: Tue Jul 31 00:08:38 2018 +0200 Remove the useless (Addr) cast when calculating the highest stack byte addr Cast not needed, as stack_low_addr is an Addr. Diff: --- coregrind/m_libcassert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c index 2792f6d..3dba677 100644 --- a/coregrind/m_libcassert.c +++ b/coregrind/m_libcassert.c @@ -336,7 +336,7 @@ static void print_thread_state (Bool stack_usage, ("%svalgrind stack range: [%p %p] top usage: %lu of %lu\n", prefix, (void*)stack_low_addr, - (void*)((Addr)stack_low_addr + VG_(clo_valgrind_stacksize) - 1), + (void*)(stack_low_addr + VG_(clo_valgrind_stacksize) - 1), VG_(clo_valgrind_stacksize) - VG_(am_get_VgStack_unused_szB) (stack, VG_(clo_valgrind_stacksize)), |