fix
This commit is contained in:
parent
d8f908f88f
commit
5a106c97db
|
@ -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;
|
||||
|
|
Reference in New Issue