mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Fix stringify bug.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user