From a13e1b24ca0efe550f3b04ff27cf6ff12233412e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 7 Jul 2017 09:28:29 +0200 Subject: [PATCH] marshal: allow casting from/to enum val --- src/marshal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/marshal.c b/src/marshal.c index fcd107f..a900430 100644 --- a/src/marshal.c +++ b/src/marshal.c @@ -277,6 +277,7 @@ static inline impl_val *psi_val_intval(impl_val *tmp, token_t real_type, zend_lo case PSI_T_INT64: tmp->i64 = intval; break; case PSI_T_UINT64: tmp->u64 = intval; break; case PSI_T_INT: tmp->ival = intval; break; + case PSI_T_ENUM: case PSI_T_LONG: tmp->lval = intval; break; case PSI_T_FLOAT: tmp->fval = intval; break; case PSI_T_DOUBLE: tmp->dval = intval; break; -- 2.30.2