]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-s390.c
gas: Fix left shift of negative value.
[thirdparty/binutils-gdb.git] / gas / config / tc-s390.c
index e217e56db3b2ddc46431049281bdc360d9a2c310..d597ee6df984f54132f8cc0365ddc531cbd40c7f 100644 (file)
@@ -2047,7 +2047,7 @@ 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));
 }
 
 /* We don't have any form of relaxing.  */