]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.cpp
search for funciton param first before function locals, this fixes #163
[xonotic/gmqcc.git] / lexer.cpp
index 79ad182a6456a439e1bfe8ee0cfa9989844aa35a..34fc71b00bfb3600b4c2bf5ca289e5d2e23f4447 100644 (file)
--- a/lexer.cpp
+++ b/lexer.cpp
@@ -65,7 +65,7 @@ static void lex_token_new(lex_file *lex)
     if (lex->tok.value)
         vec_shrinkto(lex->tok.value, 0);
 
-    lex->tok.constval.t  = 0;
+    lex->tok.constval.t  = TYPE_VOID;
     lex->tok.ctx.line    = lex->sline;
     lex->tok.ctx.file    = lex->name;
     lex->tok.ctx.column  = lex->column;