ref: beef986e3e0d7efc6a210bb80a2019efd2cee6ae
parent: 426818d5e07f09bdfe91272450dd2234f89f8096
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Apr 17 11:49:45 EDT 2014
Fix cast() The correct node is stored in np2, but the code was returning np1, so the order of the cast was inverted.
--- a/expr.c
+++ b/expr.c
@@ -502,7 +502,7 @@
if ((np2 = convert(np1, tp, 1)) == NULL)
error("bad type convertion requested");
np2->b.lvalue = np1->b.lvalue;
- return np1;
+ return np2;
default:
break;
}