]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove the useless (Addr) cast when calculating the highest stack byte addr
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 30 Jul 2018 22:08:38 +0000 (00:08 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 30 Jul 2018 22:08:38 +0000 (00:08 +0200)
Cast not needed, as stack_low_addr is an Addr.

coregrind/m_libcassert.c

index 2792f6da2432d09a8dabca5f5beaf99f272a477d..3dba6771c577499475f77bfc5e7039f0b0a8255a 100644 (file)
@@ -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)),