PR gas/12384

* config/tc-h8300.c (constant_fits_width_p): Use correct type for
	comparison.
This commit is contained in:
Nick Clifton 2011-01-20 12:49:05 +00:00
parent 2f1b715f20
commit b37a4e796b
2 changed files with 7 additions and 1 deletions

View 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

View 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