Fix functions all having the same ID on call. Closes #1
Honestly, this is why i want =? in this lang. This bug is silly and i hate it
This commit is contained in:
parent
a3ca8e621b
commit
7fe6a34613
|
@ -312,7 +312,7 @@ struct ASTNode* CallFunction() {
|
|||
int FuncID;
|
||||
|
||||
//TODO: Test structural type!
|
||||
if((FuncID == FindSymbol(CurrentIdentifier)) == -1 && (Symbols[FuncID].Structure == ST_FUNC))
|
||||
if((FuncID = FindSymbol(CurrentIdentifier)) == -1 && (Symbols[FuncID].Structure == ST_FUNC))
|
||||
DieMessage("Undeclared function", CurrentIdentifier);
|
||||
|
||||
VerifyToken(LI_LPARE, "(");
|
||||
|
|
Loading…
Reference in New Issue
Block a user