Skip to content

Commit

Permalink
Fix functions generating with array subscript
Browse files Browse the repository at this point in the history
If the first local variable is an array and it has no arguments this
would happen.
  • Loading branch information
RA-Kooi committed Dec 31, 2021
1 parent 6630765 commit 632e51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DwarfOne2C/CWriter/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private static List<string> GenerateFunction(
if(hasParams)
line = line.Remove(line.Length - 2, 2);

line += ")" + pPart2;
line += ")" + part2;
code.Add(line);
code.Add(tabs + "{");
firstLocal = false;
Expand Down

0 comments on commit 632e51f

Please sign in to comment.