X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fmarshal.c;h=2ec332953e250ec3a24c989e578d1566d8bda569;hp=f204753bfbf9190c13a0eb96f5bea4769a46f5b1;hb=98d971f89db2431ef24dac508cf9797ef93646c6;hpb=6eb5f114bb934c85515da1f38547728d80008961 diff --git a/src/marshal.c b/src/marshal.c index f204753..2ec3329 100644 --- a/src/marshal.c +++ b/src/marshal.c @@ -106,9 +106,10 @@ static inline impl_val *psi_val_intval(impl_val *tmp, token_t real_type, zend_lo case PSI_T_UINT16: tmp->u16 = intval; break; case PSI_T_INT32: tmp->i32 = intval; break; case PSI_T_UINT32: tmp->u32 = intval; break; - case PSI_T_INT: tmp->ival = intval; break; 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_LONG: tmp->lval = intval; break; case PSI_T_FLOAT: tmp->fval = intval; break; case PSI_T_DOUBLE: tmp->dval = intval; break; #ifdef HAVE_LONG_DOUBLE @@ -123,7 +124,7 @@ static inline impl_val *psi_val_intval(impl_val *tmp, token_t real_type, zend_lo impl_val *psi_let_intval(impl_val *tmp, decl_type *type, impl_arg *iarg, void **to_free) { zend_long intval; - token_t real_type = type ? real_decl_type(type)->type : PSI_T_INT; + token_t real_type = type ? real_decl_type(type)->type : PSI_T_LONG; if (iarg->type->type == PSI_T_INT) { intval = iarg->val.zend.lval;