upd: better support str vs other
This commit is contained in:
@ -120,11 +120,6 @@ int ConverToSameArithType(std::any &a, std::any &b,
|
||||
"situation",
|
||||
33);
|
||||
if (allow_string_operation && (ptr_a_string || ptr_b_string)) {
|
||||
if ((ptr_a_float || ptr_a_float))
|
||||
throw InterpretException(
|
||||
"ConverToSameArithType: string operation not allowed in this "
|
||||
"situation",
|
||||
34);
|
||||
if (ptr_a_bool) a = ZYM::int2048(*ptr_a_bool);
|
||||
if (ptr_b_bool) b = ZYM::int2048(*ptr_b_bool);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user