This commit is contained in:
CismonX 2019-06-08 04:15:41 +08:00
parent d8f908f88f
commit 5a106c97db
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ namespace php_arma
if constexpr (!IsEq && std::is_same_v<T, cx_double>) {
zend_throw_exception(zend_ce_error, "no such comparation for complex elements", 0);
return false;
} else {
using dest_t = typename ChildT::with_int_elem_t;
using dest_native_t = typename dest_t::native_t;
@ -53,6 +54,7 @@ namespace php_arma
RETVAL_OBJ(dest_t::create(std::move(arma::conv_to<dest_native_t>::from(ret))));
} catch (const std::logic_error& err) {
zend_throw_exception(zend_ce_error, err.what(), 0);
return false;
}
}
return true;