Skip to content

Commit d6f961f

Browse files
committed
Added missing braces
1 parent 7b26ec8 commit d6f961f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CodeGenerator/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,13 @@ private static bool CorrectDefaultValue(string defaultVal, TypeReference tr, out
794794
if (tr.IsEnum)
795795
{
796796
if (defaultVal.StartsWith("-"))
797+
{
797798
correctedDefault = $"({tr.Type})({defaultVal})";
799+
}
798800
else
801+
{
799802
correctedDefault = $"({tr.Type}){defaultVal}";
803+
}
800804
return true;
801805
}
802806

0 commit comments

Comments
 (0)