Skip to content

Commit

Permalink
Fix types sometimes getting their modifiers twice
Browse files Browse the repository at this point in the history
  • Loading branch information
RA-Kooi committed Jan 1, 2022
1 parent 7d729b6 commit 99a4be4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DwarfOne2C/CWriter/Types.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ private static (string part1, string part2) GetArray(
if(current.typeID > 0)
{
(type, part2) = GetType(allTags, IDToIndex, current);
type += GetModifiers(allTags, IDToIndex, current);
}
else
{
Expand Down Expand Up @@ -129,7 +128,7 @@ private static (string part1, string part2) GetFunctionPointer(
else
{
(part1, part2) = GetType(allTags, IDToIndex, current);
part1 += GetModifiers(allTags, IDToIndex, current) + "(";
part1 += "(";
}

StringBuilder sb = new();
Expand Down

0 comments on commit 99a4be4

Please sign in to comment.