mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-01-09 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 25224
|
||||||
|
* z80-dis.c (ld_ii_ii): Use correct cast.
|
||||||
|
|
||||||
2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
|
2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
|
||||||
|
|
||||||
PR 25224
|
PR 25224
|
||||||
|
@ -603,7 +603,7 @@ ld_ii_ii (struct buffer *buf, disassemble_info * info, const char *txt)
|
|||||||
int p;
|
int p;
|
||||||
static const char *ii[2] = { "ix", "iy" };
|
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];
|
c = buf->data[buf->n_fetch - 1];
|
||||||
if ((c & 0x07) != 0x07)
|
if ((c & 0x07) != 0x07)
|
||||||
p = 1 - p; /* 0 -> 1, 1 -> 0 */
|
p = 1 - p; /* 0 -> 1, 1 -> 0 */
|
||||||
|
Reference in New Issue
Block a user