PR gas/12384
authorNick Clifton <nickc@redhat.com>
Thu, 20 Jan 2011 12:49:05 +0000 (12:49 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 20 Jan 2011 12:49:05 +0000 (12:49 +0000)
* config/tc-h8300.c (constant_fits_width_p): Use correct type for
comparison.

gas/ChangeLog
gas/config/tc-h8300.c

index d9cf957812a58642acee1f26ca478eba4c59a401..4b6c530f59e6c80028052b62ba7165326d13122d 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-20  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/12384
+       * config/tc-h8300.c (constant_fits_width_p): Use correct type for
+       comparison.
+
 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * write.c (compress_debug): Return if section size is smaller
index 1a32d24f5aba1d90b0665ad5bf59ee4b55afdb57..cc46740d3aaa44f796563e58a778f6e524b31791 100644 (file)
@@ -559,7 +559,7 @@ static int
 constant_fits_width_p (struct h8_op *operand, unsigned int width)
 {
   return ((operand->exp.X_add_number & ~width) == 0
-         || (operand->exp.X_add_number | width) == (unsigned)(~0));
+         || (operand->exp.X_add_number | (offsetT) width) == (offsetT)(~0));
 }
 
 static int
This page took 0.041154 seconds and 4 git commands to generate.