Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tge-was-taken committed Nov 27, 2024
1 parent 2578a3c commit 156ab34
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2235,14 +2235,14 @@ bool TryGetVariableIndexArgument(CallOperator callExpression, out short index)
}
return false;
}
bool TryGetCommIndexArgument(CallOperator callExpression, out short index)
bool TryGetCommIndexArgument(CallOperator callExpression, out ushort index)
{
index = short.MinValue;
index = ushort.MaxValue;
if (callExpression.Arguments.Count == 1)
{
if (callExpression.Arguments[0].Expression is IntLiteral intArg)
{
index = (short)intArg.Value;
index = (ushort)intArg.Value;
return true;
}
else if (callExpression.Arguments[0].Expression is Identifier identifierArg)
Expand Down Expand Up @@ -2342,7 +2342,7 @@ bool TryGetCommIndexArgument(CallOperator callExpression, out short index)
case "__COMM":
if (callExpression.Arguments.Count == 1 && TryGetCommIndexArgument(callExpression, out var commIndex))
{
Emit(Instruction.COMM((short)commIndex));
Emit(Instruction.COMM(commIndex));
}
else
{
Expand Down

0 comments on commit 156ab34

Please sign in to comment.