1
0
Fork 0
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:
Brian Fiete 2020-11-07 06:37:41 -08:00
parent bd6e21073e
commit a9d9776bcb
2 changed files with 2 additions and 2 deletions

View file

@ -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++;