[binutils-gdb] tweak latest vms-alpha.c change

Alan Modra amodra@sourceware.org
Sun Jun 30 22:23:26 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=01a8854406356b6ecfed3a81028d9d552bf18905

commit 01a8854406356b6ecfed3a81028d9d552bf18905
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Jun 26 17:46:48 2024 +0930

    tweak latest vms-alpha.c change
    
    It's that tiny bit nicer to have the "len" expression in order of
    the components in the buffer.

Diff:
---
 bfd/vms-alpha.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index a53ccdf4eb9..6eea61df08a 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -7733,7 +7733,7 @@ evax_bfd_print_dst (struct bfd *abfd, unsigned int dst_size, FILE *file)
 
 		evax_bfd_print_valspec (buf, len, 4, file);
 
-		len -= 1 + nlen + sizeof (*recbeg);
+		len -= sizeof (*recbeg) + 1 + nlen;
 		if (len >= 4)
 		  fprintf (file, _("    len: %u bits\n"),
 			   (unsigned) bfd_getl32 (name + 1 + nlen));


More information about the Binutils-cvs mailing list