X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fnum_exp.c;h=34624204bec91d0b92f20958766cb0d3d0010249;hp=ce89de515800786d2420a7d62de00869593da2da;hb=1124354f4666e9d10d9ad3acfa45fdba3b99cfc6;hpb=a0f437f26cd0f121ee911a55327a68a3544bf15f diff --git a/src/types/num_exp.c b/src/types/num_exp.c index ce89de5..3462420 100644 --- a/src/types/num_exp.c +++ b/src/types/num_exp.c @@ -23,7 +23,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif #include @@ -31,6 +35,7 @@ #include "context.h" #include "call.h" #include "calc.h" +#include "debug.h" struct psi_num_exp *psi_num_exp_init_ternary(token_t op, struct psi_num_exp *cond, struct psi_num_exp *truthy, @@ -389,8 +394,9 @@ void psi_num_exp_dump(struct psi_dump *dump, struct psi_num_exp *exp) case PSI_T_CAST: PSI_DUMP(dump, "("); - psi_decl_type_dump(1, exp->data.c.typ, 0); + psi_decl_type_dump(dump, exp->data.c.typ, 0); PSI_DUMP(dump, ")"); + psi_num_exp_dump(dump, exp->data.c.num); break; case PSI_T_NOT: