tweak latest vms-alpha.c change
Alan Modra
amodra@gmail.com
Sun Jun 30 22:21:57 GMT 2024
I wouldn't normally make this sort of change, but I had this in my
tree before Nick committed his fix..
It's that tiny bit nicer to have the "len" expression in order of
the components in the buffer.
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));
--
Alan Modra
More information about the Binutils
mailing list