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:
parent
24a601271a
commit
ffd045f26f
2
parse.c
2
parse.c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue