fix: allow None in Convert
This commit is contained in:
@ -106,6 +106,8 @@ std::any DeQuate(std::any val, VariableContainer &Variables) {
|
|||||||
|
|
||||||
int ConverToSameArithType(std::any &a, std::any &b,
|
int ConverToSameArithType(std::any &a, std::any &b,
|
||||||
bool allow_string_operation) {
|
bool allow_string_operation) {
|
||||||
|
if (std::any_cast<NoneType>(&a)) a = (bool)false;
|
||||||
|
if (std::any_cast<NoneType>(&b)) b = (bool)false;
|
||||||
ZYM::int2048 *ptr_a_int2048 = std::any_cast<ZYM::int2048>(&a);
|
ZYM::int2048 *ptr_a_int2048 = std::any_cast<ZYM::int2048>(&a);
|
||||||
ZYM::int2048 *ptr_b_int2048 = std::any_cast<ZYM::int2048>(&b);
|
ZYM::int2048 *ptr_b_int2048 = std::any_cast<ZYM::int2048>(&b);
|
||||||
double *ptr_a_float = std::any_cast<double>(&a);
|
double *ptr_a_float = std::any_cast<double>(&a);
|
||||||
|
Reference in New Issue
Block a user