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:
David Gibson 2005-10-14 11:59:23 +10:00
parent b2543fc875
commit c6d036eaec

View file

@ -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;
}