0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-07 01:21:54 +00:00

Lexer: Pass also the symbol enum value to Bison

This commit is contained in:
Jan Maria Matejka 2018-06-01 23:23:38 +02:00
parent 8efb681cda
commit 1267228568

View File

@ -275,7 +275,10 @@ else: {
if (k) if (k)
{ {
if (k->value > 0) if (k->value > 0)
{
cf_lval.i = k->value;
return k->value; return k->value;
}
else else
{ {
cf_lval.i = -k->value; cf_lval.i = -k->value;