Browse Source

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.
main
David Gibson 19 years ago
parent
commit
c6d036eaec
  1. 2
      dtc-lexer.l

2
dtc-lexer.l

@ -82,7 +82,7 @@ REFCHAR ({PROPCHAR}|{UNITCHAR}|[/@]) @@ -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…
Cancel
Save