Skip to content

Commit

Permalink
adds explicit cast to node value. (#157)
Browse files Browse the repository at this point in the history
resolves #155
  • Loading branch information
joelmartinez authored Nov 13, 2023
1 parent 51bb93f commit 9ec7b58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override SyntaxNode GenerateCode(CSharpCodeGeneratorContext context, C
{
code = $@"
{attributesString}
public static {node.Type} {name} = {node.Value};
public static {node.Type} {name} = ({node.Type}){node.Value};
";
}

Expand Down

0 comments on commit 9ec7b58

Please sign in to comment.