mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 08:47:41 -04:00
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,
|
fprintf(stderr,
|
||||||
"Cell value %s too long\n", yytext);
|
"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);
|
DPRINT("Cell: %x\n", yylval.cval);
|
||||||
return DT_CELL;
|
return DT_CELL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue