mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed an argument list bug, found a casting bug
This commit is contained in:
@@ -1450,6 +1450,13 @@ static bool execFnCall(Interpreter* interpreter) {
|
||||
}
|
||||
|
||||
Literal arg = popLiteralArray(&arguments);
|
||||
|
||||
if (IS_IDENTIFIER(arg)) {
|
||||
Literal idn = arg;
|
||||
parseIdentifierToValue(interpreter, &arg);
|
||||
freeLiteral(idn);
|
||||
}
|
||||
|
||||
if (!setScopeVariable(inner.scope, paramArray->literals[i], arg, false)) {
|
||||
printf(ERROR "[internal] Could not define parameter (bad type?)\n" RESET);
|
||||
//free, and skip out
|
||||
|
||||
Reference in New Issue
Block a user