]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-xgate.c
gas: Fix left shift of negative value.
[thirdparty/binutils-gdb.git] / gas / config / tc-xgate.c
index 3c00b01d0747f197f20772eac54528c5fb63e0cf..afb25787bf6468727807b03dd2402d4144fe7fc2 100644 (file)
@@ -469,7 +469,7 @@ valueT
 md_section_align (asection * seg, valueT addr)
 {
   int align = bfd_get_section_alignment (stdoutput, seg);
-  return ((addr + (1 << align) - 1) & (-1 << align));
+  return ((addr + (1 << align) - 1) & -(1 << align));
 }
 
 void