Skip to content

Commit

Permalink
Merge pull request #6299 from JordanHendersonMusic/topic/tidy-remove-…
Browse files Browse the repository at this point in the history
…duplicated-if
  • Loading branch information
mtmccrea committed May 17, 2024
2 parents 563277a + e5ab460 commit 2025c68
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lang/LangSource/PyrParseNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3780,12 +3780,6 @@ void PyrBlockNode::compile(PyrSlot* slotResult) {
compileErrors++;
}

if (numArgs > 255) {
error("Too many arguments in function definition (> 255).\n");
nodePostErrorLine((PyrParseNode*)mArglist->mVarDefs);
compileErrors++;
}

numSlots = numArgs + funcVarArgs + numVars;
methraw->frameSize = (numSlots + FRAMESIZE) * sizeof(PyrSlot);
if (numSlots) {
Expand Down

0 comments on commit 2025c68

Please sign in to comment.