author | Mario de Sousa <msousa@fe.up.pt> |
Sun, 10 Jun 2012 21:51:16 +0100 | |
changeset 578 | 70c0456affca |
parent 577 | f578f14cb97f |
child 579 | 983a3b743085 |
--- a/stage3/constant_folding.cc Sun Jun 10 21:28:21 2012 +0200 +++ b/stage3/constant_folding.cc Sun Jun 10 21:51:16 2012 +0100 @@ -180,7 +180,7 @@ #define DO_BINARY_OPER(dtype, oper, otype)\ if (VALID_CVALUE(dtype, symbol->r_exp) && VALID_CVALUE(dtype, symbol->l_exp)) { \ - NEW_CVALUE(dtype, symbol); \ + NEW_CVALUE(otype, symbol); \ SET_CVALUE(otype, symbol, GET_CVALUE(dtype, symbol->l_exp) oper GET_CVALUE(dtype, symbol->r_exp)); \ }