projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
4e221db
)
marshal: allow casting from/to enum val
author
Michael Wallner
<mike@php.net>
Fri, 7 Jul 2017 07:28:29 +0000
(09:28 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 7 Jul 2017 07:28:29 +0000
(09:28 +0200)
src/marshal.c
patch
|
blob
|
history
diff --git
a/src/marshal.c
b/src/marshal.c
index fcd107fe15521dcc6eda9006ba17e2602f9b2d67..a900430664c374a0646652adb2d3b47ccfc7ea12 100644
(file)
--- 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;