From 5f5456d2c0f8a1f3d29fa57052a668f416e87e14 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 8 Feb 2001 20:19:07 +0000 Subject: [PATCH] fix a compile error when using lex --- source/fbset_modes_l.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fbset_modes_l.l b/source/fbset_modes_l.l index 1ee99c3..47932f2 100644 --- a/source/fbset_modes_l.l +++ b/source/fbset_modes_l.l @@ -76,7 +76,6 @@ static int FindToken(const char *s) for (i = 0; keywords[i].token > 0; i++) if (!strcasecmp(s, keywords[i].name)) { - yylval = keywords[i].value; return keywords[i].token; } Die("%s:%d: Unknown keyword `%s'\n", Opt_modedb, line, s); @@ -109,7 +108,8 @@ junk . %% {keyword} { - return FindToken(yytext); + yylval = FindToken(yytext); + return yylval; } {number} {