From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 16:43:24 +0000 (+0100) Subject: Fix a bug in the lexer causing double-dots to double the character after the 2nd dot X-Git-Tag: 0.1.9~262 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=9a9ecd574e0cf548febc9dfc85920d4f746e2cd3;p=xonotic%2Fgmqcc.git Fix a bug in the lexer causing double-dots to double the character after the 2nd dot --- diff --git a/lexer.c b/lexer.c index d39a0e5..10a0091 100644 --- a/lexer.c +++ b/lexer.c @@ -1110,7 +1110,7 @@ int lex_do(lex_file *lex) nextch = lex_getch(lex); if (nextch != '.') { lex_ungetch(lex, nextch); - lex_ungetch(lex, nextch); + lex_ungetch(lex, '.'); lex_endtoken(lex); return (lex->tok.ttype = ch); }