From: Nick Clifton Date: Thu, 20 Jan 2011 12:49:05 +0000 (+0000) Subject: PR gas/12384 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b37a4e796b229aceb30f528781ab86a08d18ded4;p=binutils-gdb.git PR gas/12384 * config/tc-h8300.c (constant_fits_width_p): Use correct type for comparison. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index d9cf957812a..4b6c530f59e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2011-01-20 Nick Clifton + + PR gas/12384 + * config/tc-h8300.c (constant_fits_width_p): Use correct type for + comparison. + 2011-01-18 H.J. Lu * write.c (compress_debug): Return if section size is smaller diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 1a32d24f5ab..cc46740d3aa 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -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