Oops, use strtoul() instead of strtol() in dtc-lexer.l, so that we
correctly handle cell values above 7fffffff. Bug pointed out by Kumar Gala.
This commit is contained in:
parent
b2543fc875
commit
c6d036eaec
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ REFCHAR ({PROPCHAR}|{UNITCHAR}|[/@])
|
|||
fprintf(stderr,
|
||||
"Cell value %s too long\n", yytext);
|
||||
}
|
||||
yylval.cval = strtol(yytext, NULL, 16);
|
||||
yylval.cval = strtoul(yytext, NULL, 16);
|
||||
DPRINT("Cell: %x\n", yylval.cval);
|
||||
return DT_CELL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue