From d6f961f0f8de9f13e9c002aa0ebf4e709074eccc Mon Sep 17 00:00:00 2001 From: Alex Hildebrand Date: Mon, 30 Nov 2020 00:09:18 +0100 Subject: [PATCH] Added missing braces --- src/CodeGenerator/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CodeGenerator/Program.cs b/src/CodeGenerator/Program.cs index 74db283..3f6dad8 100644 --- a/src/CodeGenerator/Program.cs +++ b/src/CodeGenerator/Program.cs @@ -794,9 +794,13 @@ namespace CodeGenerator if (tr.IsEnum) { if (defaultVal.StartsWith("-")) + { correctedDefault = $"({tr.Type})({defaultVal})"; + } else + { correctedDefault = $"({tr.Type}){defaultVal}"; + } return true; }