diff --git a/src/translate_c/ast.zig b/src/translate_c/ast.zig index e54e986056..89e6554288 100644 --- a/src/translate_c/ast.zig +++ b/src/translate_c/ast.zig @@ -1139,7 +1139,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex { .string_literal => { const payload = node.castTag(.string_literal).?.data; return c.addNode(.{ - .tag = .identifier, + .tag = .string_literal, .main_token = try c.addToken(.string_literal, payload), .data = undefined, }); @@ -1147,7 +1147,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex { .char_literal => { const payload = node.castTag(.char_literal).?.data; return c.addNode(.{ - .tag = .identifier, + .tag = .char_literal, .main_token = try c.addToken(.char_literal, payload), .data = undefined, });