Skip to content

Commit

Permalink
adds explicit cast to node value.
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmartinez committed Nov 5, 2023
1 parent 6365e5e commit 86c9bf7
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 86c9bf7

Please sign in to comment.