ubsan: bfin-lex.l:503 left shift cannot be represented

* config/bfin-lex.l: Use an unsigned type for "value".
This commit is contained in:
Alan Modra
2020-09-02 10:08:11 +09:30
parent 839f41a323
commit 251150adb1
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2020-09-02 Alan Modra <amodra@gmail.com>
* config/bfin-lex.l: Use an unsigned type for "value".
2020-09-02 Alan Modra <amodra@gmail.com>
* config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code

View File

@ -344,7 +344,7 @@ static long parse_int (char **end)
int not_done = 1;
int shiftvalue = 0;
char * char_bag;
long value = 0;
unsigned long value = 0;
char *arg = *end;
while (*arg && *arg == ' ')