diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-27 23:00:23 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-27 23:00:23 +0000 |
| commit | 91b534d128be65ee672fd21f8100a15244597604 (patch) | |
| tree | ac1db2c3b20838090d020678f576ad514f1a5787 /src/check_expr.cpp | |
| parent | 3268f43340454c6df15ea9f644f120923cbe4839 (diff) | |
Fix `transmute`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index c59bd995c..359e1e069 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -6423,7 +6423,8 @@ gbString write_expr_to_string(gbString str, AstNode *node) { str = gb_string_append_rune(str, ')'); case_end; case_ast_node(tc, TypeCast, node); - str = gb_string_appendc(str, "cast("); + str = string_append_token(str, tc->token); + str = gb_string_append_rune(str, '('); str = write_expr_to_string(str, tc->type); str = gb_string_append_rune(str, ')'); str = write_expr_to_string(str, tc->expr); |