Added missing braces

internals
Alex Hildebrand 4 years ago
parent 7b26ec8b7f
commit d6f961f0f8
  1. 4
      src/CodeGenerator/Program.cs

@ -794,9 +794,13 @@ namespace CodeGenerator
if (tr.IsEnum) if (tr.IsEnum)
{ {
if (defaultVal.StartsWith("-")) if (defaultVal.StartsWith("-"))
{
correctedDefault = $"({tr.Type})({defaultVal})"; correctedDefault = $"({tr.Type})({defaultVal})";
}
else else
{
correctedDefault = $"({tr.Type}){defaultVal}"; correctedDefault = $"({tr.Type}){defaultVal}";
}
return true; return true;
} }

Loading…
Cancel
Save