]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-msp430.c
gas: Fix left shift of negative value.
[thirdparty/binutils-gdb.git] / gas / config / tc-msp430.c
index 8e32189ef8e0a1574a38915becc9213339a3cc65..ef7c5ee2ec261b3e3a6ce8020d2d18588028d0d2 100644 (file)
@@ -3955,7 +3955,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));
 }
 
 /* If you define this macro, it should return the offset between the