diff options
author | Nick Clifton <nickc@redhat.com> | 2011-01-20 12:49:05 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-01-20 12:49:05 +0000 |
commit | b37a4e796b229aceb30f528781ab86a08d18ded4 (patch) | |
tree | fec066382a4be564bef5e345afcaa895dab1e99a /gas | |
parent | 2f1b715f20eb138017af7df6d664d20b412f815f (diff) | |
download | gdb-b37a4e796b229aceb30f528781ab86a08d18ded4.zip gdb-b37a4e796b229aceb30f528781ab86a08d18ded4.tar.gz gdb-b37a4e796b229aceb30f528781ab86a08d18ded4.tar.bz2 |
PR gas/12384
* config/tc-h8300.c (constant_fits_width_p): Use correct type for
comparison.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-h8300.c | 2 |
2 files changed, 7 insertions, 1 deletions
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 <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 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 |