]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Lexer: Pass also the symbol enum value to Bison
authorJan Maria Matejka <mq@ucw.cz>
Fri, 1 Jun 2018 21:23:38 +0000 (23:23 +0200)
committerJan Maria Matejka <mq@ucw.cz>
Fri, 1 Jun 2018 21:23:38 +0000 (23:23 +0200)
conf/cf-lex.l

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