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/config | |
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/config')
-rw-r--r-- | gas/config/tc-h8300.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |