Skip to content

Commit

Permalink
Patch from christophe.foucher added.
Browse files Browse the repository at this point in the history
Issue #168
  • Loading branch information
zik.saleeba committed Mar 16, 2013
1 parent 483ff3b commit bfc4113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct Value *ParseFunctionDefinition(struct ParseState *Parser, struct ValueTyp
ParserCopy(&ParamParser, Parser);
ParamCount = ParseCountParams(Parser);
if (ParamCount > PARAMETER_MAX)
ProgramFail(Parser, "too many parameters");
ProgramFail(Parser, "too many parameters (%d allowed)", PARAMETER_MAX);

FuncValue = VariableAllocValueAndData(pc, Parser, sizeof(struct FuncDef) + sizeof(struct ValueType *) * ParamCount + sizeof(const char *) * ParamCount, FALSE, NULL, TRUE);
FuncValue->Typ = &pc->FunctionType;
Expand Down

0 comments on commit bfc4113

Please sign in to comment.