Fixed a bug with defining void pointers.

git-svn-id: http://picoc.googlecode.com/svn/trunk@347 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-10-25 20:54:14 +00:00
parent 24a601271a
commit ffd045f26f

View file

@ -134,7 +134,7 @@ int ParseDeclaration(struct ParseState *Parser, enum LexToken Token)
}
else
{
if (Token == TokenVoidType && Identifier != StrEmpty)
if (Typ == &VoidType && Identifier != StrEmpty)
ProgramFail(Parser, "can't define a void variable");
if (Parser->Mode == RunModeRun)