From 7fe6a3461386d7f4429a59f6fdd3c5c2b8a2de11 Mon Sep 17 00:00:00 2001 From: Curle Date: Sat, 12 Sep 2020 02:54:12 +0100 Subject: [PATCH] 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 --- src/Parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser.c b/src/Parser.c index 146f2c8..886ebf1 100644 --- a/src/Parser.c +++ b/src/Parser.c @@ -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, "(");