From 99a4be43baf95a84ba2630474969ccd2af01f38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Kooi?= <48814281+RA-Kooi@users.noreply.github.com> Date: Sat, 1 Jan 2022 23:21:02 +0100 Subject: [PATCH] Fix types sometimes getting their modifiers twice --- DwarfOne2C/CWriter/Types.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DwarfOne2C/CWriter/Types.cs b/DwarfOne2C/CWriter/Types.cs index bb336a3..038316f 100644 --- a/DwarfOne2C/CWriter/Types.cs +++ b/DwarfOne2C/CWriter/Types.cs @@ -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 { @@ -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();