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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user