From: Alan Modra Date: Sat, 30 Oct 2021 08:24:53 +0000 (+1030) Subject: ubsan: alpha-vms: undefined shift X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9216910ed82b2b64ced4b2031730f6a659c2034c;p=binutils-gdb.git ubsan: alpha-vms: undefined shift * vms-alpha.c (evax_bfd_print_image): Shift left 1u. --- diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 10758d56e00..aed2e26d503 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -7845,7 +7845,7 @@ evax_bfd_print_image (bfd *abfd, FILE *file) } mask = bfd_getl32 (eihvn.subsystem_mask); for (j = 0; j < 32; j++) - if (mask & (1 << j)) + if (mask & (1u << j)) { struct vms_eihvn_subversion ver; if (bfd_bread (&ver, sizeof (ver), abfd) != sizeof (ver))