]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix a very nasty bug in the lexer's handling of comments
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 23 Nov 2012 20:35:14 +0000 (21:35 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 23 Nov 2012 20:35:14 +0000 (21:35 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index 8f1bcb8a46eb3eb5bd823c91267f5bae01765950..61fe11f56ce61fbfc1d1bcc2e93c1ac7e7db62ca 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -604,6 +604,7 @@ static int lex_skipwhite(lex_file *lex)
                             }
                             break;
                         }
+                        lex_ungetch(lex, ch);
                     }
                     if (lex->flags.preprocessing) {
                         lex_tokench(lex, ' '); /* ch); */