]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-bfin.c
gas: Fix left shift of negative value.
[thirdparty/binutils-gdb.git] / gas / config / tc-bfin.c
index 656e51554173c702f79d552d1402d6e82f5e2632..77b6013cf8c509bba6964ac8e0c277caf984683a 100644 (file)
@@ -796,7 +796,7 @@ md_section_align (segment, size)
      valueT size;
 {
   int boundary = bfd_get_section_alignment (stdoutput, segment);
-  return ((size + (1 << boundary) - 1) & (-1 << boundary));
+  return ((size + (1 << boundary) - 1) & -(1 << boundary));
 }