Fix stringify bug.

This commit is contained in:
Christoffer Lerno
2022-09-18 01:26:06 +02:00
parent 35549c21bc
commit c7f0f58e82
2 changed files with 2 additions and 1 deletions

View File

@@ -505,6 +505,7 @@ static Expr *parse_ct_stringify(ParseContext *c, Expr *left)
expr->const_expr.const_kind = CONST_STRING;
expr->const_expr.string.chars = content;
expr->const_expr.string.len = len;
expr->type = type_get_ptr(type_get_array(type_char, len));
return expr;
}