]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
tweak latest vms-alpha.c change
authorAlan Modra <amodra@gmail.com>
Wed, 26 Jun 2024 08:16:48 +0000 (17:46 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 30 Jun 2024 05:11:42 +0000 (14:41 +0930)
It's that tiny bit nicer to have the "len" expression in order of
the components in the buffer.

bfd/vms-alpha.c

index a53ccdf4eb99f5411ae576c38074e08a84589074..6eea61df08a0bdec87dae6b47c428c7c61790a47 100644 (file)
@@ -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));