Fixed type parsing error

git-svn-id: http://picoc.googlecode.com/svn/trunk@60 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-02-03 00:46:02 +00:00
parent d95e7debf8
commit c009864bbb

2
type.c
View file

@ -171,7 +171,7 @@ void TypeParse(struct ParseState *Parser, struct ValueType **Typ, const char **I
break;
case TokenIdentifier:
if (*Typ == NULL || *Identifier == StrEmpty)
if (*Typ == NULL || *Identifier != StrEmpty)
ProgramFail(Parser, "bad type declaration");
*Identifier = LexValue->Val->String;