https://sourceware.org/bugzilla/show_bug.cgi?id=25224

--- Comment #27 from Luis Machado <luis.machado at linaro dot org> ---
I'm still seeing this for aarch64 (and s390).

../../binutils-gdb/opcodes/z80-dis.c: In function 'ld_ii_ii':
../../binutils-gdb/opcodes/z80-dis.c:606:36: error: comparison is always false
due to limited range of data type [-Werror=type-limits]
   p = (buf->data[buf->n_fetch - 2] == (char) 0xdd) ? 0 : 1;

Isn't the problem the difference in types? The cast is for (char), but
buf->data is explicitly (signed char).

If the architecture's char defaults to unsigned char, then we'd have a problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to