diff --git a/src/utils.cpp b/src/utils.cpp index 5e6ba4c..1ee73cf 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -106,6 +106,8 @@ std::any DeQuate(std::any val, VariableContainer &Variables) { int ConverToSameArithType(std::any &a, std::any &b, bool allow_string_operation) { + if (std::any_cast(&a)) a = (bool)false; + if (std::any_cast(&b)) b = (bool)false; ZYM::int2048 *ptr_a_int2048 = std::any_cast(&a); ZYM::int2048 *ptr_b_int2048 = std::any_cast(&b); double *ptr_a_float = std::any_cast(&a);