* csky-dis.c (csky_chars_to_number): Remove abort and unnecessary
mask.
+2019-12-12 Alan Modra <amodra@gmail.com>
+
+ * csky-dis.c (csky_chars_to_number): Remove abort and unnecessary
+ mask.
+
2019-12-11 Alan Modra <amodra@gmail.com>
* arc-dis.c (BITS): Don't truncate high bits with shifts.
static unsigned int
csky_chars_to_number (unsigned char * buf, int n)
{
- if (n <= 0)
- abort ();
int i;
unsigned int val = 0;
if (dis_info.info->endian == BFD_ENDIAN_BIG)
for (i = 0; i < n; i++)
- val = val << 8 | (buf[i] & 0xff);
+ val = val << 8 | buf[i];
else
for (i = n - 1; i >= 0; i--)
- val = val << 8 | (buf[i] & 0xff);
+ val = val << 8 | buf[i];
return val;
}