mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Allow default param before params param
This commit is contained in:
parent
bd6e21073e
commit
a9d9776bcb
2 changed files with 2 additions and 2 deletions
|
@ -5830,7 +5830,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
|
||||
if (!isDirectPass)
|
||||
{
|
||||
int numElements = (int)argValues.size() - argIdx;
|
||||
int numElements = BF_MAX((int)argValues.size() - argIdx, 0);
|
||||
if (methodDef->mMethodType == BfMethodType_Extension)
|
||||
numElements++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue