Fix the cast used to prevent compile time warning about an always false test.
authorNick Clifton <nickc@redhat.com>
Thu, 9 Jan 2020 14:32:49 +0000 (14:32 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 9 Jan 2020 14:32:49 +0000 (14:32 +0000)
PR 25224
* z80-dis.c (ld_ii_ii): Use correct cast.

opcodes/ChangeLog
opcodes/z80-dis.c

index 396549b8503c0ed41900d963dddf31c01efb8b15..eb67b55db7b020840e51ff60bc065e99be603dce 100644 (file)
@@ -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>
 
        PR 25224
index 8dc75987123e3230e18e1d6fdeeace9d58ae88e9..b6f0606a17a21edd7d0ea22ec36a3b424d1ba987 100644 (file)
@@ -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 */
This page took 0.024956 seconds and 4 git commands to generate.