From 5f900edef158f39b51414f8d5f20cd99363b2c09 Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Tue, 31 Jul 2018 00:08:38 +0200 Subject: [PATCH] Remove the useless (Addr) cast when calculating the highest stack byte addr Cast not needed, as stack_low_addr is an Addr. --- 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 2792f6da24..3dba6771c5 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)), -- 2.47.2