mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
* Don't use ATerms to represent integers in the lexer.
This commit is contained in:
parent
db90b88e65
commit
ed711f73bc
2 changed files with 5 additions and 3 deletions
|
@ -107,7 +107,7 @@ inherit { return INHERIT; }
|
|||
|
||||
{ID} { yylval->t = toATerm(yytext); return ID; /* !!! alloc */ }
|
||||
{INT} { int n = atoi(yytext); /* !!! overflow */
|
||||
yylval->t = ATmake("<int>", n);
|
||||
yylval->n = n;
|
||||
return INT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue