PR 26479
* config/tc-nios2.c (md_chars_to_number): Cast buf[i] before shifting.
+2020-08-31 Alan Modra <amodra@gmail.com>
+
+ PR 26479
+ * config/tc-nios2.c (md_chars_to_number): Cast buf[i] before shifting.
+
2020-08-31 Alan Modra <amodra@gmail.com>
PR 26472
val = 0;
if (target_big_endian)
for (i = 0; i < n; ++i)
- val = val | ((buf[i] & 0xff) << 8 * (n - (i + 1)));
+ val = val | ((valueT) (buf[i] & 0xff) << 8 * (n - (i + 1)));
else
for (i = 0; i < n; ++i)
- val = val | ((buf[i] & 0xff) << 8 * i);
+ val = val | ((valueT) (buf[i] & 0xff) << 8 * i);
return val;
}