]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-xstormy16.c
gas: Fix left shift of negative value.
[thirdparty/binutils-gdb.git] / gas / config / tc-xstormy16.c
index 981dc950b72bd751cad84c679a8aab16e42140e7..3f0613cdc0cf58a227239f26aace4932b81d008c 100644 (file)
@@ -279,7 +279,7 @@ md_section_align (segT segment, valueT size)
 {
   int align = bfd_get_section_alignment (stdoutput, segment);
 
-  return ((size + (1 << align) - 1) & (-1 << align));
+  return ((size + (1 << align) - 1) & -(1 << align));
 }
 
 symbolS *