Improve auto_cast logic

This commit is contained in:
gingerBill
2021-04-22 17:29:48 +01:00
parent 896057b5a7
commit ac53577e9b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -11164,7 +11164,8 @@ lbValue lb_build_expr(lbProcedure *p, Ast *expr) {
case_end;
case_ast_node(ac, AutoCast, expr);
return lb_build_expr(p, ac->expr);
lbValue value = lb_build_expr(p, ac->expr);
return lb_emit_conv(p, value, tv.type);
case_end;
case_ast_node(ue, UnaryExpr, expr);