ref: 6d2283c60d81931945e78f068aa330d0146f10a5
parent: 19e261299a6f0105b5bfa919fc5401b0c6243ea2
author: Ori Bernstein <[email protected]>
date: Fri Jul 20 22:03:59 EDT 2012
Allow any pointer to be cast to any other pointer.
--- a/8/simp.c
+++ b/8/simp.c
@@ -677,6 +677,10 @@
args[0]->expr.type = n->expr.type;
r = args[0];
break;
+ case Typtr:
+ args[0]->expr.type = n->expr.type;
+ r = args[0];
+ break;
default:
fatal(n->line, "Bad cast from %s to %s",
tystr(exprtype(args[0])), tystr(exprtype(n)));