X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodule.c;h=57fe9d6b286ebef8b018cf4506484d7f6f219847;hb=6af43d341ce260ffd7d5d443bc0b535692d5f67e;hp=166596434ae8a4447bcebcf362c8e5d5b85751e8;hpb=633acd548ce5da37812bca7119e57c8f56e974e2;p=m6w6%2Fext-psi diff --git a/src/module.c b/src/module.c index 1665964..57fe9d6 100644 --- a/src/module.c +++ b/src/module.c @@ -107,6 +107,11 @@ void psi_to_int(impl_val *ret_val, decl_arg *func, zval *return_value) } } +void psi_to_double(impl_val *ret_val, decl_arg *func, zval *return_value) +{ + RETVAL_DOUBLE(deref_impl_val(0, ret_val, func)->dval); +} + void psi_to_string(impl_val *ret_val, decl_arg *func, zval *return_value) { switch (real_decl_type(func->type)->type) {