From b37a4e796b229aceb30f528781ab86a08d18ded4 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 20 Jan 2011 12:49:05 +0000 Subject: [PATCH] PR gas/12384 * config/tc-h8300.c (constant_fits_width_p): Use correct type for comparison. --- gas/ChangeLog | 6 ++++++ gas/config/tc-h8300.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d9cf957..4b6c530 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 1a32d24..cc46740 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 -- 2.7.4