aboutsummaryrefslogtreecommitdiff
path: root/opcodes/z80-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-01-09 14:32:49 +0000
committerNick Clifton <nickc@redhat.com>2020-01-09 14:32:49 +0000
commitbce58db4fb1112529a54387c7fdaa1042859f5fb (patch)
tree052146d8b209a55878fae2cbdba1c831deeb0f97 /opcodes/z80-dis.c
parentabb78b78c4184d2ac968362229adae268385a21c (diff)
downloadgdb-bce58db4fb1112529a54387c7fdaa1042859f5fb.zip
gdb-bce58db4fb1112529a54387c7fdaa1042859f5fb.tar.gz
gdb-bce58db4fb1112529a54387c7fdaa1042859f5fb.tar.bz2
Fix the cast used to prevent compile time warning about an always false test.
PR 25224 * z80-dis.c (ld_ii_ii): Use correct cast.
Diffstat (limited to 'opcodes/z80-dis.c')
-rw-r--r--opcodes/z80-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/z80-dis.c b/opcodes/z80-dis.c
index 8dc7598..b6f0606 100644
--- a/opcodes/z80-dis.c
+++ b/opcodes/z80-dis.c
@@ -603,7 +603,7 @@ ld_ii_ii (struct buffer *buf, disassemble_info * info, const char *txt)
int p;
static const char *ii[2] = { "ix", "iy" };
- p = (buf->data[buf->n_fetch - 2] == (char) 0xdd) ? 0 : 1;
+ p = (buf->data[buf->n_fetch - 2] == (signed char) 0xdd) ? 0 : 1;
c = buf->data[buf->n_fetch - 1];
if ((c & 0x07) != 0x07)
p = 1 - p; /* 0 -> 1, 1 -> 0 */