Fixed type parsing error
git-svn-id: http://picoc.googlecode.com/svn/trunk@60 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
d95e7debf8
commit
c009864bbb
2
type.c
2
type.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue