aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-s390.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2004-06-15 12:38:08 +0000
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2004-06-15 12:38:08 +0000
commitf84d8e26b4b82cf46329a5f69ed87a8d7fda9773 (patch)
tree0170b7b968479d55b56b16e70379e193d3a69a30 /gas/config/tc-s390.c
parent6bf9431b7430d0c30268c62f78a940657c8d6fbe (diff)
downloadgdb-f84d8e26b4b82cf46329a5f69ed87a8d7fda9773.zip
gdb-f84d8e26b4b82cf46329a5f69ed87a8d7fda9773.tar.gz
gdb-f84d8e26b4b82cf46329a5f69ed87a8d7fda9773.tar.bz2
* config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
comparison in .insn pseudo operation.
Diffstat (limited to 'gas/config/tc-s390.c')
-rw-r--r--gas/config/tc-s390.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c
index 2cb8cf1..0242728 100644
--- a/gas/config/tc-s390.c
+++ b/gas/config/tc-s390.c
@@ -1596,13 +1596,13 @@ s390_insn (ignore)
if (exp.X_op == O_constant)
{
if ( ( opformat->oplen == 6
- && exp.X_add_number >= 0
+ && (addressT) exp.X_add_number >= 0
&& (addressT) exp.X_add_number < (1ULL << 48))
|| ( opformat->oplen == 4
- && exp.X_add_number >= 0
+ && (addressT) exp.X_add_number >= 0
&& (addressT) exp.X_add_number < (1ULL << 32))
|| ( opformat->oplen == 2
- && exp.X_add_number >= 0
+ && (addressT) exp.X_add_number >= 0
&& (addressT) exp.X_add_number < (1ULL << 16)))
md_number_to_chars (insn, exp.X_add_number, opformat->oplen);
else